Function at 0x4a1040
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 0x60080e
mov eax, dword fs:[0]
push eax
sub esp, 0x4fc
mov eax, dword [0x672494]
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 eax, dword [ebp + 8]
mov edx, ecx
mov esi, dword [ebp + 0x10]
lea ecx, [ebp - 0x490]
mov dword [ebp - 0x4d4], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x4d8], eax
call fcn.004a0f40
mov edx, esi
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x478]
call fcn.004a0f40
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x4cc]
cmp dword [ebp - 0x47c], 8
lea eax, [ebp - 0x490]
push ecx
cmovae eax, dword [ebp - 0x490]
xorps xmm0, xmm0
push 0
push 0
push eax
mov dword [ebp - 0x4c8], 0
movlpd qword [ebp - 0x4c0], xmm0
movlpd qword [ebp - 0x4b4], xmm0
movlpd qword [ebp - 0x4ac], xmm0
movlpd qword [ebp - 0x4a4], xmm0
mov dword [ebp - 0x498], 0
mov dword [ebp - 0x4cc], 0x3c
mov dword [ebp - 0x4c4], 0xffffffff
mov dword [ebp - 0x4b8], 0xffffffff
mov dword [ebp - 0x49c], 0xffffffff
mov dword [ebp - 0x494], 0xffffffff
call dword [sym.imp.WINHTTP.dll_WinHttpCrackUrl]
test eax, eax
jne 0x4a1142
xor bl, bl
jmp 0x4a15b4
cmp dword [ebp - 0x464], 8
lea eax, [ebp - 0x478]
push 0
cmovae eax, dword [ebp - 0x478]
push 0
push 0
push 0
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov edi, eax
mov dword [ebp - 0x440], edi
mov byte [ebp - 4], 2
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
test edi, edi
je 0x4a159e
cmp edi, 0xffffffff
je 0x4a159e
mov eax, dword [ebp + 0x18]
push eax
push eax
push eax
push eax
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpSetTimeouts]
test eax, eax
je 0x4a159e
mov ecx, dword [ebp - 0x4bc]
xor esi, esi
mov eax, dword [ebp - 0x4b8]
mov edx, 7
mov dword [ebp - 0x424], 0
mov dword [ebp - 0x420], edx
mov word [ebp - 0x434], si
lea eax, [ecx + eax*2]
cmp ecx, eax
je 0x4a11e6
sub eax, ecx
sar eax, 1
push eax
push ecx
lea ecx, [ebp - 0x434]
call fcn.00417d60
mov edx, dword [ebp - 0x420]
push 0
push dword [ebp - 0x4b4]
cmp edx, 8
lea eax, [ebp - 0x434]
cmovae eax, dword [ebp - 0x434]
push eax
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov esi, eax
mov dword [ebp - 0x444], esi
lea ecx, [ebp - 0x434]
mov byte [ebp - 4], 3
call fcn.0040f8c0
test esi, esi
je 0x4a1588
cmp esi, 0xffffffff
je 0x4a1588
mov eax, dword [ebp - 0x494]
push ecx
mov ecx, dword [ebp - 0x498]
lea eax, [ecx + eax*2]
push eax
push ecx
lea ecx, [ebp - 0x508]
call fcn.00428960
mov ebx, eax
push ecx
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x4a0]
mov ecx, dword [ebp - 0x49c]
lea ecx, [edx + ecx*2]
push ecx
push edx
lea ecx, [ebp - 0x4f0]
call fcn.00428960
push ebx
mov edx, eax
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x460]
call fcn.00439b80
add esp, 4
lea ecx, [ebp - 0x4f0]
call fcn.0040f8c0
lea ecx, [ebp - 0x508]
call fcn.0040f8c0
cmp dword [ebp - 0x4c0], 2
lea eax, [ebp - 0x460]
mov edx, 0x800000
sete bl
xor ecx, ecx
cmp dword [ebp - 0x4c0], 2
cmove ecx, edx
cmp dword [ebp - 0x44c], 8
push ecx
cmovae eax, dword [ebp - 0x460]
push 0
push 0
push 0
push eax
push str.POST
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov esi, eax
mov dword [ebp - 0x448], esi
mov byte [ebp - 4], 9
test esi, esi
je 0x4a1563
cmp esi, 0xffffffff
je 0x4a1563
test bl, bl
je 0x4a1319
push 4
lea eax, [ebp - 0x414]
mov dword [ebp - 0x414], 0x3301
push eax
push 0x1f
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
mov ebx, dword [ebp + 0x14]
cmp dword [ebx + 4], 0
jbe 0x4a1466
push 0xb0
lea eax, [ebp - 0xc0]
push 0
push eax
call fcn.0056c1d0
add esp, 4
lea ecx, [ebp - 0xc0]
call fcn.00428700
mov byte [ebp - 4], 0xa
mov ecx, dword [ebx]
mov dword [ebp - 0x4d0], ecx
mov eax, dword [ecx]
mov dword [ebp - 0x414], eax
cmp eax, ecx
je 0x4a13bb
nop
add eax, 0x10
cmp dword [eax + 0x28], 0
lea ecx, [eax + 0x18]
je 0x4a13a2
push 0x65211c
push ecx
push 0x64725c
push eax
lea eax, [ebp - 0xb0]
push eax
call fcn.0040d7b0
add esp, 8
push eax
call fcn.0040f1d0
add esp, 8
push eax
call fcn.0040d7b0
add esp, 8
push eax
call fcn.0040f1d0
add esp, 8
lea ecx, [ebp - 0x414]
call fcn.0040f700
mov eax, dword [ebp - 0x414]
cmp eax, dword [ebp - 0x4d0]
jne 0x4a1360
lea eax, [ebp - 0x4f0]
push eax
lea ecx, [ebp - 0xa8]
call fcn.00427670
lea edx, [ebp - 0x4f0]
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x434]
call fcn.004a0f40
mov byte [ebp - 4], 0xa
mov edx, dword [ebp - 0x4dc]
cmp edx, 0x10
jb 0x4a1420
mov ecx, dword [ebp - 0x4f0]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4a1416
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4a15e8
push edx
push ecx
call fcn.004d0c91
add esp, 8
mov ecx, dword [ebp - 0x424]
test ecx, ecx
je 0x4a144c
cmp dword [ebp - 0x420], 8
lea eax, [ebp - 0x434]
push 0x1000000
cmovae eax, dword [ebp - 0x434]
push ecx
push eax
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
lea ecx, [ebp - 0x434]
call fcn.0040f8c0
lea ecx, [ebp - 0xc0]
mov byte [ebp - 4], 9
call fcn.00427720
mov eax, dword [ebp - 0x4d4]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x4a147d
cmp dword [eax + 0x14], 0x10
jb 0x4a147f
mov eax, dword [eax]
jmp 0x4a147f
xor eax, eax
push 0
push ecx
push ecx
push eax
push 0
push 0
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
je 0x4a1563
push 0
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x4a1563
push 0
lea eax, [ebp - 0x438]
mov dword [ebp - 0x41c], 0
push eax
lea eax, [ebp - 0x41c]
mov dword [ebp - 0x438], 4
push eax
push 0
push 0x20000013
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
mov ebx, dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
lea eax, [ebp - 0x418]
push eax
push esi
call ebx
test eax, eax
je 0x4a1550
mov edi, dword [ebp - 0x4d8]
mov ecx, dword [ebp - 0x418]
test ecx, ecx
je 0x4a154a
mov eax, 0x400
cmp ecx, eax
cmovb eax, ecx
lea ecx, [ebp - 0x43c]
push ecx
push eax
mov dword [ebp - 0x418], eax
lea eax, [ebp - 0x410]
push eax
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x4a154a
push dword [ebp - 0x43c]
lea eax, [ebp - 0x410]
mov ecx, edi
push eax
call fcn.0040e560
lea eax, [ebp - 0x418]
push eax
push esi
call ebx
test eax, eax
jne 0x4a14f4
mov edi, dword [ebp - 0x440]
mov eax, dword [ebp - 0x41c]
add eax, 0xffffff38
cmp eax, 0x63
setbe bl
jmp 0x4a1565
xor bl, bl
test esi, esi
je 0x4a1575
cmp esi, 0xffffffff
je 0x4a1575
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
lea ecx, [ebp - 0x460]
call fcn.0040f8c0
mov esi, dword [ebp - 0x444]
jmp 0x4a158a
xor bl, bl
test esi, esi
je 0x4a15a2
cmp esi, 0xffffffff
je 0x4a15a2
push esi
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
call esi
jmp 0x4a15a8
xor bl, bl
jmp 0x4a15a8
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
test edi, edi
je 0x4a15b4
cmp edi, 0xffffffff
je 0x4a15b4
push edi
call esi
lea ecx, [ebp - 0x478]
call fcn.0040f8c0
lea ecx, [ebp - 0x490]
call fcn.0040f8c0
mov al, bl
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.004d0a85
mov esp, ebp
pop ebp
ret
call fcn.0056efe9
int3