Function at 0x401ae0
Capabilities:
Initialize winhttp library
Prepare http request
Read http header
Receive http response
Set http header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42a8d5
mov eax, dword fs:[0]
push eax
sub esp, 0x90
mov eax, dword [0x43c048]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 0x10], 0
jne 0x401b4b
push str.Error:_URL_is_empty.
lea ecx, [ebp - 0x40]
call fcn.004014c0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.00402c80
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.0040b1c0
mov eax, 1
jmp 0x402231
xor eax, eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov dword [ebp - 4], 1
xorps xmm0, xmm0
cmp dword [ebx + 0x14], 8
mov dword [ebp - 0x98], eax
mov dword [ebp - 0x68], eax
mov eax, ebx
movlpd qword [ebp - 0x90], xmm0
movlpd qword [ebp - 0x84], xmm0
movlpd qword [ebp - 0x7c], xmm0
movlpd qword [ebp - 0x74], xmm0
mov dword [ebp - 0x9c], 0x3c
mov dword [ebp - 0x94], 0xffffffff
mov dword [ebp - 0x88], 0xffffffff
mov dword [ebp - 0x6c], 0xffffffff
mov dword [ebp - 0x64], 0xffffffff
jb 0x401bd7
mov eax, dword [ebx]
lea ecx, [ebp - 0x9c]
push ecx
push 0
push dword [ebx + 0x10]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpCrackUrl]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x401c68
call esi
push str.WinHttpCrackUrl_failed__may_not_need_to_be_cracked
lea ecx, [ebp - 0x40]
call fcn.004014c0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x40]
call fcn.00402c80
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.0040b1c0
lea eax, [ebp - 0x28]
cmp eax, ebx
je 0x401cb5
cmp dword [ebx + 0x14], 8
mov eax, dword [ebx + 0x10]
jb 0x401c31
mov ebx, dword [ebx]
mov ecx, dword [ebp - 0x14]
cmp eax, ecx
ja 0x401c61
lea esi, [eax + eax]
mov dword [ebp - 0x18], eax
cmp ecx, 8
lea edi, [ebp - 0x28]
push esi
cmovae edi, dword [ebp - 0x28]
push ebx
push edi
call fcn.0040da70
add esp, 0xc
xor eax, eax
mov word [esi + edi], ax
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x401cb5
push ebx
push dword [ebp - 0x48]
push eax
jmp 0x401cad
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp - 0x14]
cmp edi, eax
ja 0x401ca3
cmp eax, 8
mov dword [ebp - 0x18], edi
lea eax, [edi + edi]
push eax
push dword [ebp - 0x8c]
lea esi, [ebp - 0x28]
cmovae esi, dword [ebp - 0x28]
push esi
call fcn.0040da70
add esp, 0xc
xor eax, eax
mov word [esi + edi*2], ax
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x401cb5
push dword [ebp - 0x8c]
push dword [ebp - 0x48]
push edi
lea ecx, [ebp - 0x28]
call fcn.00407b60
push 0
push 0
push 0
push 0
push str.ISXInstallInfo
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov edi, eax
mov dword [ebp - 0x4c], edi
mov byte [ebp - 4], 4
mov ebx, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
test edi, edi
jne 0x401d12
call esi
push str.WinHttpOpen_failed.
lea ecx, [ebp - 0x40]
mov esi, eax
call fcn.004014c0
mov byte [ebp - 4], 5
mov edx, esi
lea ecx, [ebp - 0x40]
call fcn.00402d40
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x40]
call fcn.0040b1c0
mov dword [ebp - 0x44], 1
jmp 0x40200d
push 0x7530
push 0x7530
push 0x7530
push 0x7530
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpSetTimeouts]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x401d62
call ebx
push str.WinHttpSetTimeouts_failed.
lea ecx, [ebp - 0x40]
mov esi, eax
call fcn.004014c0
mov byte [ebp - 4], 6
mov edx, esi
lea ecx, [ebp - 0x40]
call fcn.00402d40
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x40]
call fcn.0040b1c0
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0
cmovae eax, dword [ebp - 0x28]
push 0x1bb
push eax
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov dword [ebp - 0x58], eax
mov byte [ebp - 4], 7
test eax, eax
jne 0x401dbe
call ebx
push str.WinHttpConnect_failed.
lea ecx, [ebp - 0x40]
mov esi, eax
call fcn.004014c0
mov byte [ebp - 4], 8
mov edx, esi
lea ecx, [ebp - 0x40]
call fcn.00402d40
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x40]
call fcn.0040b1c0
mov dword [ebp - 0x44], 1
jmp 0x401ff2
push 0x800000
push 0
push 0
push 0
push str._sso_servlet_messagerouter
push str.POST
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov edi, eax
mov dword [ebp - 0x48], edi
mov byte [ebp - 4], 9
test edi, edi
jne 0x401e01
call ebx
push str.WinHttpOpenRequest_failed.
lea ecx, [ebp - 0x40]
mov esi, eax
call fcn.004014c0
mov byte [ebp - 4], 0xa
jmp 0x401fb5
push 0xa0000000
push 0x16
push str.Content_Type:_text_xml
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
test eax, eax
jne 0x401e32
call ebx
push str.WinHttpAddRequestHeaders_failed.
lea ecx, [ebp - 0x40]
mov esi, eax
call fcn.004014c0
mov byte [ebp - 4], 0xb
jmp 0x401fb5
push 4
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x5c], 0x3100
push eax
push 0x1f
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
jne 0x401e66
call ebx
push str.WinHttpSetOption_failed.
lea ecx, [ebp - 0x40]
mov esi, eax
call fcn.004014c0
mov byte [ebp - 4], 0xc
jmp 0x401fb5
mov esi, dword [0x43df20]
mov eax, 0x43df10
cmp dword [0x43df24], 0x10
push 0
cmovae eax, dword [0x43df10]
push esi
push esi
push eax
push 0
push 0
push edi
mov dword [ebp - 0x60], eax
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
jne 0x401f25
call ebx
mov dword [ebp - 0x44], eax
cmp eax, 0x2f8f
jne 0x401f0c
push 4
lea eax, [ebp - 0x44]
mov dword [ebp - 0x44], 0xa00
push eax
push 0x54
push dword [ebp - 0x4c]
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
jne 0x401edc
call ebx
push str.WinHttpSetOption_failed.
lea ecx, [ebp - 0x40]
mov esi, eax
call fcn.004014c0
mov byte [ebp - 4], 0xd
jmp 0x401fb5
push 0
push esi
push esi
push dword [ebp - 0x60]
push 0
push 0
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
jne 0x401f25
call ebx
push str.WinHttpSendRequest_failed.
lea ecx, [ebp - 0x40]
mov esi, eax
call fcn.004014c0
mov byte [ebp - 4], 0xe
jmp 0x401fb5
push str.WinHttpSendRequest_failed.
lea ecx, [ebp - 0x40]
call fcn.004014c0
mov byte [ebp - 4], 0xf
mov edx, dword [ebp - 0x44]
jmp 0x401fb7
push 0
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
jne 0x401f49
call ebx
push str.WinHttpReceiveResponse_failed.
lea ecx, [ebp - 0x40]
mov esi, eax
call fcn.004014c0
mov byte [ebp - 4], 0x10
jmp 0x401fb5
push 0
lea eax, [ebp - 0x50]
mov dword [ebp - 0x54], 0
push eax
lea eax, [ebp - 0x54]
mov dword [ebp - 0x50], 4
push eax
push 0
push 0x20000013
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
jne 0x401f8a
call ebx
push str.WinHttpQueryHeaders_failed.
lea ecx, [ebp - 0x40]
mov esi, eax
call fcn.004014c0
mov byte [ebp - 4], 0x11
jmp 0x401fb5
mov esi, dword [ebp - 0x54]
lea eax, [esi - 0xc8]
cmp eax, 0x63
ja 0x401fa4
mov ecx, edi
call fcn.00402260
mov dword [ebp - 0x44], eax
jmp 0x401fd2
push str.HTTPResponse_is_bad__status_code
lea ecx, [ebp - 0x40]
call fcn.004014c0
mov byte [ebp - 4], 0x12
mov edx, esi
lea ecx, [ebp - 0x40]
call fcn.00402d40
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x40]
call fcn.0040b1c0
mov dword [ebp - 0x44], 1
mov byte [ebp - 4], 7
test edi, edi
je 0x401fef
mov ebx, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
push edi
call ebx
mov edi, dword [ebp - 0x4c]
mov dword [ebp - 0x48], 0
jmp 0x401ff8
mov edi, dword [ebp - 0x4c]
mov ebx, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x58]
test eax, eax
je 0x40200d
push eax
call ebx
mov dword [ebp - 0x58], 0
mov byte [ebp - 4], 1
test edi, edi
je 0x40201f
push edi
call ebx
mov dword [ebp - 0x4c], 0
mov dword [ebp - 4], 0xffffffff
mov esi, dword [ebp - 0x18]
cmp esi, 1
jb 0x402048
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
mov dword [ebp - 0x18], 1
cmovae eax, dword [ebp - 0x28]
xor ecx, ecx
mov word [eax + 2], cx
jmp 0x402098
mov ecx, dword [ebp - 0x14]
mov edx, 1
mov eax, ecx
sub edx, esi
sub eax, esi
cmp edx, eax
ja 0x40208a
cmp ecx, 8
mov dword [ebp - 0x18], 1
lea ebx, [ebp - 0x28]
cmovae ebx, dword [ebp - 0x28]
lea edi, [ebx + esi*2]
test edx, edx
je 0x40207f
xor eax, eax
mov ecx, edx
shr ecx, 1
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
lea eax, [edx + esi]
xor ecx, ecx
mov word [ebx + eax*2], cx
jmp 0x402098
push ecx
push edx
push dword [ebp - 0x48]
lea ecx, [ebp - 0x28]
push edx
call fcn.0040b290
mov ecx, dword [ebp - 0x14]
cmp ecx, 8
jb 0x402107
mov edx, dword [ebp - 0x18]
cmp edx, 8
jae 0x40214d
mov esi, dword [ebp - 0x28]
lea eax, [edx*2 + 2]
push eax
lea eax, [ebp - 0x28]
push esi
push eax
call fcn.0040da70
mov eax, dword [ebp - 0x14]
lea edi, [eax*2 + 2]
push edi
push 0
push esi
call fcn.0040dff0
add esp, 0x18
cmp edi, 0x1000
jb 0x4020f5
mov ecx, dword [esi - 4]
add edi, 0x23
sub esi, ecx
lea eax, [esi - 4]
cmp eax, 0x1f
ja 0x40224d
mov esi, ecx
push edi
push esi
call fcn.0040ca74
add esp, 8
mov ecx, 7
mov dword [ebp - 0x14], ecx
cmp ecx, 8
mov dword [ebp - 0x48], 0
lea edi, [ebp - 0x28]
cmovae edi, dword [ebp - 0x28]
test ecx, ecx
je 0x40222e
lea eax, [ebp - 0x48]
mov dword [ebp - 0x50], 0
mov ax, word [eax]
lea edx, [ebp - 0x50]
cmp ax, word [edx]
jne 0x40221f
lea eax, [ecx + ecx]
push eax
push 0
push edi
call fcn.0040dff0
add esp, 0xc
jmp 0x40222e
mov esi, edx
mov eax, 0x7ffffffe
or esi, 7
cmp esi, eax
cmova esi, eax
mov eax, 8
cmp esi, eax
cmovb esi, eax
cmp esi, ecx
jae 0x402107
lea eax, [esi + 1]
cmp eax, 0x7fffffff
ja 0x402252
add eax, eax
cmp eax, 0x1000
jb 0x4021ab
lea ecx, [eax + 0x23]
cmp ecx, eax
jbe 0x402252
push ecx
call fcn.0040ca87
add esp, 4
test eax, eax
je 0x40224d
lea edi, [eax + 0x23]
and edi, 0xffffffe0
mov dword [edi - 4], eax
mov edx, dword [ebp - 0x18]
jmp 0x4021c1
test eax, eax
je 0x4021bf
push eax
call fcn.0040ca87
mov edx, dword [ebp - 0x18]
add esp, 4
mov edi, eax
jmp 0x4021c1
xor edi, edi
lea eax, [edx*2 + 2]
push eax
push dword [ebp - 0x28]
push edi
call fcn.0040da70
mov eax, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x28]
lea eax, [eax*2 + 2]
push eax
push 0
push ebx
mov dword [ebp - 0x48], eax
call fcn.0040dff0
mov ecx, dword [ebp - 0x48]
add esp, 0x18
cmp ecx, 0x1000
jb 0x40220b
mov edx, dword [ebx - 4]
add ecx, 0x23
sub ebx, edx
lea eax, [ebx - 4]
cmp eax, 0x1f
ja 0x40224d
mov ebx, edx
push ecx
push ebx
call fcn.0040ca74
add esp, 8
mov dword [ebp - 0x28], edi
mov ecx, esi
jmp 0x402104
test ecx, ecx
je 0x40222e
xor eax, eax
shr ecx, 1
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040c7f2
mov esp, ebp
pop ebp
ret
call fcn.00411487
call fcn.0040b9d0
int3