Function at 0x43ea90
Capabilities:
Initialize winhttp library
Prepare http request
Receive http response
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10c8
call fcn.0047bc80
mov eax, dword [0x4fe080]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
or ebx, 0xffffffff
push 0
push 0
push 0
push 0
mov dword [ebp - 0x104c], edi
mov dword [ebp - 0x10c8], eax
call fcn.00403d10
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov esi, eax
mov dword [ebp - 0x10c0], esi
test esi, esi
jne 0x43eaf2
pop edi
pop esi
or eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047b06c
mov esp, ebp
pop ebp
ret
push 0x7530
push 0x7530
push 0xea60
push 0
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpSetTimeouts]
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x61c], ax
lea eax, [ebp - 0x61a]
push eax
call fcn.0047bb20
xor eax, eax
push 0xa26
push eax
mov word [ebp - 0x1044], ax
lea eax, [ebp - 0x1042]
push eax
call fcn.0047bb20
push 0x3c
lea eax, [ebp - 0x10bc]
push 0
push eax
call fcn.0047bb20
lea eax, [ebp - 0x61c]
mov dword [ebp - 0x10bc], 0x3c
mov ecx, edi
mov dword [ebp - 0x10ac], eax
lea eax, [ebp - 0x1044]
mov dword [ebp - 0x10a8], 0x104
add esp, 0x24
mov dword [ebp - 0x1090], eax
mov dword [ebp - 0x108c], 0x514
mov dword [ebp - 0x10b4], 1
lea edx, [ecx + 2]
jmp 0x43eba0
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x43eba0
lea eax, [ebp - 0x10bc]
sub ecx, edx
push eax
push 0
sar ecx, 1
push ecx
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpCrackUrl]
mov edi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
test eax, eax
je 0x43ef84
push 0
push dword [ebp - 0x10a4]
lea eax, [ebp - 0x61c]
push eax
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov dword [ebp - 0x10c4], eax
test eax, eax
je 0x43ef81
xor esi, esi
mov eax, 0x800000
cmp dword [ebp - 0x10b0], 2
cmove esi, eax
cmp dword [ebp - 0x10c8], 0
je 0x43ec13
call fcn.004040a0
jmp 0x43ec18
call fcn.004040d0
push esi
push 0
push 0
push 0
push dword [ebp - 0x1090]
push eax
push dword [ebp - 0x10c4]
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov esi, eax
test esi, esi
je 0x43ef72
cmp dword [ebp - 0x10b0], 2
jne 0x43ec61
push 4
lea eax, [ebp - 0x1048]
mov dword [ebp - 0x1048], 0x3100
push eax
push 0x1f
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
push 0
push dword [ebp + 0x10]
mov byte [ebp - 0x1048], 0
push 0
push 0
push 0
push 0
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
jne 0x43eeb4
lea eax, [ebp - 0x1068]
xorps xmm0, xmm0
push eax
movdqu xmmword [ebp - 0x1068], xmm0
call dword [sym.imp.WINHTTP.dll_WinHttpGetIEProxyConfigForCurrentUser]
test eax, eax
je 0x43ef9a
mov eax, dword [ebp - 0x1064]
mov edi, dword [sym.imp.KERNEL32.dll_GlobalFree]
test eax, eax
je 0x43eda3
xorps xmm0, xmm0
mov dword [ebp - 0x1050], 0
movdqu xmmword [ebp - 0x1080], xmm0
mov dword [ebp - 0x1078], eax
lea eax, [ebp - 0x1058]
push eax
lea eax, [ebp - 0x1080]
movq qword [ebp - 0x1070], xmm0
push eax
push dword [ebp - 0x104c]
mov dword [ebp - 0x1080], 3
push dword [ebp - 0x10c0]
mov dword [ebp - 0x107c], 1
mov dword [ebp - 0x106c], 1
mov dword [ebp - 0x1070], 0
mov dword [ebp - 0x1074], 0
movq qword [ebp - 0x1058], xmm0
call dword [sym.imp.WINHTTP.dll_WinHttpGetProxyForUrl]
test eax, eax
je 0x43ee71
push 0xc
lea eax, [ebp - 0x1058]
push eax
mov eax, dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
push 0x26
push esi
call eax
test eax, eax
je 0x43ed80
push 0
push 0
push 0
push 0
push 0
push 0
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
mov ecx, dword [ebp - 0x1048]
test eax, eax
movzx ecx, cl
mov edx, 1
cmovne ecx, edx
mov dword [ebp - 0x1048], ecx
mov eax, dword [ebp - 0x1054]
test eax, eax
je 0x43ed8d
push eax
call edi
mov eax, dword [ebp - 0x1050]
test eax, eax
je 0x43ee7a
push eax
call edi
jmp 0x43ee7a
cmp dword [ebp - 0x1060], 0
je 0x43ee94
xor eax, eax
mov dword [ebp - 0x1050], 0
push 0x206
push eax
mov word [ebp - 0x414], ax
xorps xmm0, xmm0
lea eax, [ebp - 0x412]
movq qword [ebp - 0x1058], xmm0
push eax
mov dword [ebp - 0x1058], 3
call fcn.0047bb20
push dword [ebp - 0x1060]
lea eax, [ebp - 0x414]
push 0x104
push eax
call fcn.0047e695
add esp, 0x18
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x105c], 0
mov dword [ebp - 0x1054], eax
je 0x43ee5a
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.0047bb20
push dword [ebp - 0x105c]
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0047e695
lea eax, [ebp - 0x20c]
add esp, 0x18
mov dword [ebp - 0x1050], eax
push 0xc
lea eax, [ebp - 0x1058]
push eax
mov eax, dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
push 0x26
push esi
call eax
test eax, eax
jne 0x43ee7a
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
mov ebx, eax
mov eax, dword [ebp - 0x1064]
test eax, eax
je 0x43ee87
push eax
call edi
mov eax, dword [ebp - 0x1060]
test eax, eax
je 0x43ee94
push eax
call edi
mov eax, dword [ebp - 0x105c]
test eax, eax
je 0x43eea1
push eax
call edi
cmp byte [ebp - 0x1048], 0
mov edi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
je 0x43ef72
mov eax, dword [ebp - 0x10c8]
test eax, eax
je 0x43eee6
lea ecx, [ebp - 0x104c]
mov dword [ebp - 0x104c], 0
push ecx
push dword [ebp + 0x10]
push eax
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpWriteData]
test eax, eax
jne 0x43eee6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push 0
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x43ef72
lea eax, [ebp - 0x1048]
mov dword [ebp - 0x1048], 0
push eax
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x43ef72
mov eax, dword [ebp - 0x1048]
inc eax
push eax
call fcn.004780a0
mov edi, eax
add esp, 4
test edi, edi
je 0x43ef6c
mov ecx, dword [ebp - 0x1048]
inc ecx
push ecx
push 0
push edi
call fcn.0047bb20
add esp, 0xc
mov dword [ebp - 0x104c], 0
lea eax, [ebp - 0x104c]
push eax
push dword [ebp - 0x1048]
push edi
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x43ef6c
push edi
call fcn.0047ca9b
push edi
mov ebx, eax
call fcn.0047b041
add esp, 8
mov edi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
push esi
call edi
mov esi, dword [ebp - 0x10c0]
mov eax, dword [ebp - 0x10c4]
push eax
call edi
push esi
call edi
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047b06c
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x43ef72