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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43f42f
mov eax, dword fs:[0]
push eax
sub esp, 0x4a0
mov eax, dword [0x44f100]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x440]
push eax
call fcn.004025b0
add esp, 4
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x440]
push ecx
lea edx, [ebp - 0x428]
push edx
call fcn.00402930
add esp, 8
mov byte [ebp - 4], 1
push 0
push 0
push 0
push 0
push str.A_WinHTTP_Example_Program_1.0
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov dword [ebp - 0x448], eax
cmp dword [ebp - 0x448], 0
jne 0x402af2
push 0x409700
push 0x441434
push 0x450910
call fcn.004041a0
add esp, 8
mov ecx, eax
call fcn.0040df90
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x428]
call fcn.0040d250
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x440]
call fcn.0040d270
nop
jmp 0x402ebc
push 0x3c
push 0
lea eax, [ebp - 0x4ac]
push eax
call fcn.0041fbc0
add esp, 0xc
mov dword [ebp - 0x4ac], 0x3c
lea ecx, [ebp - 0x210]
mov dword [ebp - 0x49c], ecx
mov dword [ebp - 0x498], 0x100
lea edx, [ebp - 0x410]
mov dword [ebp - 0x480], edx
mov dword [ebp - 0x47c], 0x100
lea eax, [ebp - 0x4ac]
push eax
push 0
push 0
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpCrackUrl]
test eax, eax
jne 0x402ba6
push 0x409700
push 0x441464
push 0x450910
call fcn.004041a0
add esp, 8
mov ecx, eax
call fcn.0040df90
mov edx, dword [ebp - 0x448]
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x428]
call fcn.0040d250
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x440]
call fcn.0040d270
nop
jmp 0x402ebc
push 0
movzx eax, word [ebp - 0x494]
push eax
mov ecx, dword [ebp - 0x49c]
push ecx
mov edx, dword [ebp - 0x448]
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov dword [ebp - 0x454], eax
cmp dword [ebp - 0x454], 0
jne 0x402c25
push 0x409700
push 0x44148c
push 0x450910
call fcn.004041a0
add esp, 8
mov ecx, eax
call fcn.0040df90
mov eax, dword [ebp - 0x448]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x428]
call fcn.0040d250
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x440]
call fcn.0040d270
nop
jmp 0x402ebc
movzx ecx, word [ebp - 0x494]
cmp ecx, 0x1bb
jne 0x402c40
mov dword [ebp - 0x458], 0x800000
jmp 0x402c4a
mov dword [ebp - 0x458], 0
mov edx, dword [ebp - 0x458]
push edx
push 0
push 0
push 0
mov eax, dword [ebp - 0x480]
push eax
push str.POST
mov ecx, dword [ebp - 0x454]
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov dword [ebp - 0x444], eax
cmp dword [ebp - 0x444], 0
jne 0x402cde
push 0x409700
push 0x4414d4
push 0x450910
call fcn.004041a0
add esp, 8
mov ecx, eax
call fcn.0040df90
mov edx, dword [ebp - 0x454]
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov eax, dword [ebp - 0x448]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x428]
call fcn.0040d250
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x440]
call fcn.0040d270
nop
jmp 0x402ebc
mov dword [ebp - 0x45c], 0x441508
push 0
mov ecx, dword [ebp - 0x45c]
push ecx
call fcn.00421db5
add esp, 4
push eax
mov edx, dword [ebp - 0x45c]
push edx
mov eax, dword [ebp - 0x444]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
mov dword [ebp - 0x464], eax
lea ecx, [ebp - 0x428]
call fcn.00416d50
mov dword [ebp - 0x460], eax
push 0
mov ecx, dword [ebp - 0x460]
push ecx
mov edx, dword [ebp - 0x460]
push edx
lea ecx, [ebp - 0x428]
call fcn.004143c0
push eax
push 0
push 0
mov eax, dword [ebp - 0x444]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
mov dword [ebp - 0x464], eax
cmp dword [ebp - 0x464], 0
jne 0x402d85
push 0x409700
push 0x441588
push 0x450910
call fcn.004041a0
add esp, 8
mov ecx, eax
call fcn.0040df90
nop
jmp 0x402e73
push 0
mov ecx, dword [ebp - 0x444]
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
mov dword [ebp - 0x44c], 0
mov dword [ebp - 0x46c], 0
lea edx, [ebp - 0x44c]
push edx
mov eax, dword [ebp - 0x444]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x402e73
mov ecx, dword [ebp - 0x44c]
add ecx, 1
push ecx
call fcn.0041cd9f
add esp, 4
mov dword [ebp - 0x468], eax
mov edx, dword [ebp - 0x468]
mov dword [ebp - 0x450], edx
mov eax, dword [ebp - 0x44c]
add eax, 1
push eax
push 0
mov ecx, dword [ebp - 0x450]
push ecx
call fcn.0041fbc0
add esp, 0xc
lea edx, [ebp - 0x46c]
push edx
mov eax, dword [ebp - 0x44c]
push eax
mov ecx, dword [ebp - 0x450]
push ecx
mov edx, dword [ebp - 0x444]
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x402e58
push 0x4096d0
mov eax, dword [ebp - 0x450]
push eax
push 0x4415b8
push 0x450860
call fcn.00403b50
add esp, 8
push eax
call fcn.00403b50
add esp, 8
mov ecx, eax
call fcn.0040df90
nop
mov ecx, dword [ebp - 0x450]
mov dword [ebp - 0x470], ecx
mov edx, dword [ebp - 0x470]
push edx
call fcn.0041cda8
add esp, 4
mov eax, dword [ebp - 0x444]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov ecx, dword [ebp - 0x454]
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov edx, dword [ebp - 0x448]
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x428]
call fcn.0040d250
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x440]
call fcn.0040d270
nop
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041cffe
mov esp, ebp
pop ebp
ret