Function at 0x404f7b
Capabilities:
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x419ec3
mov eax, dword fs:[0]
push eax
sub esp, 0x450
mov eax, dword [0x4241d0]
xor eax, esp
mov dword [esp + 0x448], eax
push ebx
push esi
push edi
mov eax, dword [0x4241d0]
xor eax, esp
push eax
lea eax, [esp + 0x460]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov ebx, ecx
mov ecx, dword [ebx + 8]
xor edi, edi
mov dword [esp + 0x14], esi
mov dword [esp + 0x1c], edi
cmp ecx, edi
je 0x405369
cmp ecx, 0xffffffff
je 0x405369
cmp dword [ebx + 0x84], 2
jne 0x404ff1
mov eax, 0x800000
jmp 0x404ff3
xor eax, eax
push edi
or eax, 0x4400040
push eax
push 0x4262b0
push edx
push str.HTTP_1.0
push esi
push str.POST
push ecx
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov dword [ebx + 0xc], eax
cmp eax, edi
je 0x405353
cmp eax, 0xffffffff
je 0x405353
mov esi, dword [sym.imp.WININET.dll_HttpAddRequestHeadersA]
push 0x80000000
push 0xd
push str.Accept:___r_n
push eax
call esi
test eax, eax
jne 0x405056
mov dword [esp + 0x14], str.additional_header_failed...
push 0x422228
lea eax, [esp + 0x18]
push eax
call fcn.0040d12b
push 0x10000000
push 0x4e
push str.Content_Type:_multipart_form_data__boundary__MULTI_PARTS_FORM_DATA_BOUNDARY_r_n
push dword [ebx + 0xc]
call esi
test eax, eax
jne 0x40507e
mov dword [esp + 0x14], str.additional_header_failed...
push 0x422228
lea eax, [esp + 0x18]
jmp 0x405050
mov eax, dword [ebx + 0xbc]
cmp eax, edi
jbe 0x4051fc
push edi
lea ecx, [esp + 0x30]
mov dword [esp + 0x48], 0xf
call fcn.004020ae
mov dword [esp + 0x468], edi
mov eax, dword [ebx + 0x84]
dec eax
je 0x4050b8
dec eax
jne 0x4050c6
push str.https:__
jmp 0x4050bd
push str.http:__
lea ecx, [esp + 0x30]
call fcn.00401ae6
cmp dword [ebx + 0x28], 0x10
jb 0x4050d1
mov eax, dword [ebx + 0x14]
jmp 0x4050d4
lea eax, [ebx + 0x14]
push eax
lea eax, [esp + 0x30]
push eax
call fcn.00405770
mov eax, dword [ebx + 0x84]
cmp eax, 1
jne 0x4050f3
cmp dword [ebx + 0x80], 0x50
je 0x405138
cmp eax, 2
jne 0x405104
cmp dword [ebx + 0x80], 0x1bb
je 0x405138
push dword [ebx + 0x80]
xor eax, eax
mov word [esp + 0x4c], ax
lea edi, [esp + 0x4e]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [esp + 0x4c]
push 0x41d59c
push eax
call fcn.0040bf76
add esp, 0xc
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 0x30]
push eax
call fcn.00405770
push dword [esp + 0x14]
lea eax, [esp + 0x30]
push eax
call fcn.00405770
mov eax, dword [ebx + 0xb8]
mov eax, dword [eax]
mov dword [esp + 0x18], eax
mov eax, dword [ebx + 0xa4]
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 0xb8]
mov dword [esp + 0x28], eax
mov eax, dword [ebx + 0xa4]
lea edi, [esp + 0x24]
lea esi, [esp + 0x14]
mov dword [esp + 0x24], eax
call fcn.00405791
test al, al
je 0x4051e5
call fcn.004057ae
mov eax, dword [eax]
cmp dword [eax + 0x34], 0x10
jb 0x405193
mov edx, dword [eax + 0x20]
jmp 0x405196
lea edx, [eax + 0x20]
cmp dword [eax + 0x18], 0x10
jb 0x4051a1
mov eax, dword [eax + 4]
jmp 0x4051a4
add eax, 4
cmp dword [esp + 0x44], 0x10
mov ecx, dword [esp + 0x30]
jae 0x4051b3
lea ecx, [esp + 0x30]
push edx
push eax
push ecx
call dword [sym.imp.WININET.dll_InternetSetCookieA]
test eax, eax
je 0x4051cf
lea edi, [esp + 0x48]
lea esi, [esp + 0x14]
call fcn.004057d9
jmp 0x40515c
mov dword [esp + 0x14], str.add_cookie_failed...
push 0x422228
lea eax, [esp + 0x18]
jmp 0x405050
or dword [esp + 0x468], 0xffffffff
push 0
push 1
lea ecx, [esp + 0x34]
call fcn.004020ca
xor edi, edi
lea eax, [esp + 0x1c]
push eax
push ebx
call fcn.00404e63
mov dword [esp + 0x14], eax
xor eax, eax
push 0x3fe
mov word [esp + 0x58], ax
lea eax, [esp + 0x5a]
push edi
push eax
call fcn.0040d620
add esp, 0xc
push dword [esp + 0x14]
lea eax, [esp + 0x58]
push str.Content_Length:__d_r_n
push eax
call fcn.0040bf76
lea eax, [esp + 0x60]
add esp, 0xc
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405242
push 0x10000000
sub eax, esi
push eax
lea eax, [esp + 0x5c]
push eax
push dword [ebx + 0xc]
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersA]
test eax, eax
jne 0x405279
mov dword [esp + 0x14], str.additional_header_failed...
push 0x422228
lea eax, [esp + 0x18]
jmp 0x405050
push edi
push 8
push edi
push 0x426f00
mov dword [0x426f00], 0x28
mov dword [0x426f04], edi
push dword [ebx + 0xc]
call dword [sym.imp.WININET.dll_HttpSendRequestExA]
test eax, eax
jne 0x4052be
push dword [esp + 0x1c]
call fcn.00404f65
mov dword [esp + 0x14], str.request_failed
push 0x422228
lea eax, [esp + 0x18]
jmp 0x405050
mov esi, dword [esp + 0x1c]
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x18]
mov dword [esp + 0x28], edi
push esi
push dword [ebx + 0xc]
call dword [sym.imp.WININET.dll_InternetWriteFile]
test eax, eax
jne 0x4052f9
push esi
call fcn.00404f65
mov dword [esp + 0x14], str.request_failed
push 0x422228
lea eax, [esp + 0x18]
jmp 0x405050
push edi
push 8
push edi
push dword [ebx + 0xc]
call dword [sym.imp.WININET.dll_HttpEndRequestW]
push esi
test eax, eax
jne 0x405326
call fcn.00404f65
mov dword [esp + 0x1c], str.request_failed
push 0x422228
lea eax, [esp + 0x20]
jmp 0x405050
call fcn.00404f65
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.0040b557
mov esp, ebp
pop ebp
ret 8
mov dword [esp + 0x14], str.request_failed...
push 0x422228
lea eax, [esp + 0x18]
jmp 0x405050
mov dword [esp + 0x14], str.handle_not_opened...
push 0x422228
lea eax, [esp + 0x18]
jmp 0x405050