Function at 0x409d30
Capabilities:
Initialize winhttp library
Prepare http request
Receive http response
Send data
Send http request
Set http header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa64
mov eax, dword [0x4b135c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.00421df0
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push eax
call fcn.00421df0
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x61c], ax
lea eax, [ebp - 0x61a]
push eax
call fcn.00421df0
add esp, 0x24
xor esi, esi
push esi
push esi
push esi
push esi
push 0x4a0ba8
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov edi, eax
mov dword [ebp - 0xa28], edi
test edi, edi
jne 0x409dc3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x40a01d
push ebx
push 0x3c
lea eax, [ebp - 0xa64]
push 0
push eax
call fcn.00421df0
add esp, 0xc
mov dword [ebp - 0xa64], 0x3c
cmp dword [ebp + 0x34], 8
lea eax, [ebp - 0x20c]
mov dword [ebp - 0xa54], eax
lea ecx, [ebp - 0xa64]
lea eax, [ebp - 0x414]
mov dword [ebp - 0xa50], 0x104
mov dword [ebp - 0xa38], eax
lea eax, [ebp - 0x61c]
push ecx
mov dword [ebp - 0xa30], eax
lea eax, [ebp + 0x20]
cmovae eax, dword [ebp + 0x20]
push 0
push dword [ebp + 0x30]
mov dword [ebp - 0xa34], 0x104
push eax
mov dword [ebp - 0xa2c], 0x104
mov dword [ebp - 0xa5c], 0xffffffff
call dword [sym.imp.WINHTTP.dll_WinHttpCrackUrl]
test eax, eax
je 0x40a006
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x409e60
sub ecx, edx
sar ecx, 1
je 0x40a006
lea ecx, [ebp - 0x414]
lea edx, [ecx + 2]
mov edi, edi
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x409e80
sub ecx, edx
sar ecx, 1
je 0x40a006
mov eax, dword [ebp - 0xa4c]
xor ecx, ecx
cmp cx, ax
jae 0x40a006
push ecx
push eax
lea eax, [ebp - 0x20c]
push eax
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov ebx, eax
test ebx, ebx
je 0x40a006
push 0x100
push 0
push 0
push 0
lea eax, [ebp - 0x414]
push eax
push str.POST
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov edi, eax
test edi, edi
jne 0x409efa
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov esi, eax
push ebx
call edi
jmp 0x40a014
push 0xa0000000
push 0xffffffffffffffff
push str.Content_Type:_application_x_www_form_urlencoded
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
test eax, eax
jne 0x409f2a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov edi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov esi, eax
call edi
push ebx
call edi
jmp 0x40a014
push 0
push dword [ebp + 0x18]
push 0
push 0
push 0
push 0
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
jne 0x409f5b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov edi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov esi, eax
call edi
push ebx
call edi
jmp 0x40a014
cmp dword [ebp + 0x1c], 0x10
lea ecx, [ebp - 0xa20]
push ecx
push dword [ebp + 0x18]
lea eax, [ebp + 8]
mov dword [ebp - 0xa20], esi
cmovae eax, dword [ebp + 8]
push eax
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpWriteData]
test eax, eax
jne 0x409f98
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov edi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov esi, eax
call edi
push ebx
call edi
jmp 0x40a014
push 0
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
jne 0x409fbb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov edi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov esi, eax
call edi
push ebx
call edi
jmp 0x40a014
push 0x3ff
lea eax, [ebp - 0xa1b]
mov byte [ebp - 0xa1c], 0
push 0
push eax
call fcn.00421df0
add esp, 0xc
mov dword [ebp - 0xa24], esi
lea eax, [ebp - 0xa24]
push eax
push 0x400
lea eax, [ebp - 0xa1c]
push eax
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
push edi
mov edi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
call edi
push ebx
call edi
jmp 0x40a014
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov esi, eax
push dword [ebp - 0xa28]
call edi
pop ebx
cmp dword [ebp + 0x1c], 0x10
jb 0x40a02e
push dword [ebp + 8]
call fcn.0046f2be
add esp, 4
cmp dword [ebp + 0x34], 8
mov dword [ebp + 0x1c], 0xf
mov dword [ebp + 0x18], 0
mov byte [ebp + 8], 0
jb 0x40a051
push dword [ebp + 0x20]
call fcn.0046f2be
add esp, 4
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.0041d30f
mov esp, ebp
pop ebp
ret