Function at 0x4059d0
Capabilities:
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x41b7db
mov eax, dword fs:[0]
push eax
sub esp, 0x450
mov eax, dword [0x4251d0]
xor eax, esp
mov dword [esp + 0x448], eax
push ebx
push esi
push edi
mov eax, dword [0x4251d0]
xor eax, esp
push eax
lea eax, [esp + 0x460]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov ebx, ecx
mov eax, dword [ebx + 8]
mov dword [esp + 0x14], edi
mov dword [esp + 0x1c], 0
test eax, eax
je 0x405e0f
cmp eax, 0xffffffff
je 0x405e0f
xor ecx, ecx
cmp dword [ebx + 0x84], 2
push 0
setne cl
dec ecx
and ecx, 0x800000
or ecx, 0x4400040
push ecx
push 0x4272b0
push esi
push str.HTTP_1.0
push edi
push str.POST
push eax
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov dword [ebx + 0xc], eax
test eax, eax
je 0x405df8
cmp eax, 0xffffffff
je 0x405df8
mov edi, dword [sym.imp.WININET.dll_HttpAddRequestHeadersA]
push 0x80000000
push 0xd
push str.Accept:___r_n
push eax
call edi
test eax, eax
jne 0x405ab0
push 0x423100
lea edx, [esp + 0x20]
push edx
mov dword [esp + 0x24], str.additional_header_failed...
call fcn.0040ea9b
mov eax, dword [ebx + 0xc]
push 0x10000000
push 0x4e
push str.Content_Type:_multipart_form_data__boundary__MULTI_PARTS_FORM_DATA_BOUNDARY_r_n
push eax
call edi
test eax, eax
jne 0x405add
push 0x423100
lea ecx, [esp + 0x20]
push ecx
mov dword [esp + 0x24], str.additional_header_failed...
call fcn.0040ea9b
mov eax, dword [ebx + 0xbc]
xor esi, esi
cmp eax, esi
jbe 0x405c78
mov dword [esp + 0x44], 0xf
mov dword [esp + 0x40], esi
mov byte [esp + 0x30], 0
mov dword [esp + 0x468], esi
mov eax, dword [ebx + 0x84]
sub eax, 1
je 0x405b21
sub eax, 1
jne 0x405b30
lea edx, [esp + 0x2c]
push edx
mov edx, str.https:__
jmp 0x405b2b
lea eax, [esp + 0x2c]
push eax
mov edx, str.http:__
call fcn.00406350
cmp dword [ebx + 0x28], 0x10
jb 0x405b3b
mov edx, dword [ebx + 0x14]
jmp 0x405b3e
lea edx, [ebx + 0x14]
lea ecx, [esp + 0x2c]
push ecx
call fcn.00406370
mov eax, dword [ebx + 0x84]
cmp eax, 1
jne 0x405b5c
cmp dword [ebx + 0x80], 0x50
je 0x405ba5
cmp eax, 2
jne 0x405b6d
cmp dword [ebx + 0x80], 0x1bb
je 0x405ba5
xor eax, eax
mov dword [esp + 0x4a], eax
mov dword [esp + 0x4e], eax
mov eax, dword [ebx + 0x80]
push eax
lea ecx, [esp + 0x4c]
xor edx, edx
push 0x41e484
push ecx
mov word [esp + 0x54], dx
call fcn.0040d8e8
add esp, 0xc
lea edx, [esp + 0x2c]
push edx
lea edx, [esp + 0x4c]
call fcn.00406370
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x2c]
push eax
call fcn.00406370
mov eax, dword [ebx + 0xb8]
mov ecx, dword [eax]
mov edx, dword [ebx + 0xa4]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x20], edx
lea esp, [esp]
mov eax, dword [ebx + 0xb8]
mov ecx, dword [ebx + 0xa4]
lea esi, [esp + 0x14]
lea edi, [esp + 0x20]
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], ecx
call fcn.00406400
test al, al
je 0x405c5e
mov esi, edi
call fcn.00406390
mov eax, dword [eax]
mov ecx, 0x10
cmp dword [eax + 0x34], ecx
jb 0x405c0d
mov edx, dword [eax + 0x20]
jmp 0x405c10
lea edx, [eax + 0x20]
cmp dword [eax + 0x18], ecx
jb 0x405c1a
mov eax, dword [eax + 4]
jmp 0x405c1d
add eax, 4
cmp dword [esp + 0x44], ecx
mov ecx, dword [esp + 0x30]
jae 0x405c2b
lea ecx, [esp + 0x30]
push edx
push eax
push ecx
call dword [sym.imp.WININET.dll_InternetSetCookieA]
test eax, eax
je 0x405c47
lea edi, [esp + 0x48]
lea esi, [esp + 0x20]
call fcn.004063c0
jmp 0x405bd0
push 0x423100
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x1c], str.add_cookie_failed...
call fcn.0040ea9b
lea ecx, [esp + 0x2c]
mov dword [esp + 0x468], 0xffffffff
call fcn.00401f10
mov edi, dword [sym.imp.WININET.dll_HttpAddRequestHeadersA]
lea eax, [esp + 0x1c]
push eax
push ebx
call fcn.00405890
xor ecx, ecx
push 0x3fe
push ecx
lea edx, [esp + 0x5e]
push edx
mov esi, eax
mov word [esp + 0x60], cx
call fcn.0040ef40
add esp, 0xc
push esi
lea eax, [esp + 0x58]
push str.Content_Length:__d_r_n
push eax
call fcn.0040d8e8
lea eax, [esp + 0x60]
add esp, 0xc
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405cc0
push 0x10000000
sub eax, edx
mov edx, dword [ebx + 0xc]
push eax
lea ecx, [esp + 0x5c]
push ecx
push edx
call edi
test eax, eax
jne 0x405cf5
push 0x423100
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x1c], str.additional_header_failed...
call fcn.0040ea9b
xor edi, edi
push edi
push 8
push edi
mov dword [0x427f00], 0x28
mov dword [0x427f04], edi
mov ecx, dword [ebx + 0xc]
push 0x427f00
push ecx
call dword [sym.imp.WININET.dll_HttpSendRequestExA]
test eax, eax
jne 0x405d48
mov edx, dword [esp + 0x1c]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push 0x423100
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x1c], str.request_failed
call fcn.0040ea9b
mov edx, dword [ebx + 0xc]
lea ecx, [esp + 0x28]
push ecx
push esi
mov esi, dword [esp + 0x24]
push esi
push edx
mov dword [esp + 0x38], edi
call dword [sym.imp.WININET.dll_InternetWriteFile]
test eax, eax
jne 0x405d8b
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push 0x423100
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x1c], str.request_failed
call fcn.0040ea9b
mov ecx, dword [ebx + 0xc]
push edi
push 8
push edi
push ecx
call dword [sym.imp.WININET.dll_HttpEndRequestW]
push esi
push edi
test eax, eax
jne 0x405dc3
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push 0x423100
lea edx, [esp + 0x24]
push edx
mov dword [esp + 0x28], str.request_failed
call fcn.0040ea9b
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov al, 1
mov ecx, dword [esp + 0x460]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x448]
xor ecx, esp
call fcn.0040cec7
mov esp, ebp
pop ebp
ret 8
push 0x423100
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x1c], str.request_failed...
call fcn.0040ea9b
push 0x423100
lea ecx, [esp + 0x18]
push ecx
mov dword [esp + 0x1c], str.handle_not_opened...
call fcn.0040ea9b
int3