Function at 0x40b430
Capabilities:
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x43af58
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x44a874]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
push esi
push edi
mov eax, dword [0x44a874]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov ebx, ecx
mov eax, dword [ebx + 8]
test eax, eax
je 0x40b71a
cmp eax, 0xffffffff
je 0x40b71a
mov ecx, dword [ebx + 0xa0]
xor edx, edx
cmp dword [ebx + 0x84], 2
push ecx
setne dl
sub edx, 1
and edx, 0x800000
or edx, 0x4000000
push edx
push 0x451ea4
push esi
push str.HTTP_1.0
push edi
push 0x441f64
push eax
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
xor esi, esi
cmp eax, esi
mov dword [ebx + 0xc], eax
je 0x40b703
cmp eax, 0xffffffff
je 0x40b703
push SysReAllocStringLen
push 0xd
push str.Accept:___r_n
push eax
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersA]
test eax, eax
jne 0x40b502
push 0x4462cc
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x18], str.additional_header_failed...
call fcn.00422a93
mov eax, dword [ebx + 0x9c]
cmp eax, esi
jbe 0x40b6ab
mov dword [esp + 0x38], 0xf
mov dword [esp + 0x34], esi
mov byte [esp + 0x24], 0
mov dword [esp + 0x58], esi
mov eax, dword [ebx + 0x84]
sub eax, 1
je 0x40b541
sub eax, 1
jne 0x40b550
lea ecx, [esp + 0x20]
push ecx
mov edx, str.https:__
jmp 0x40b54b
lea edx, [esp + 0x20]
push edx
mov edx, str.http:__
call fcn.004081c0
cmp dword [ebx + 0x28], 0x10
jb 0x40b55b
mov edx, dword [ebx + 0x14]
jmp 0x40b55e
lea edx, [ebx + 0x14]
lea eax, [esp + 0x20]
push eax
call fcn.0040bfc0
mov eax, dword [ebx + 0x84]
cmp eax, 1
jne 0x40b57c
cmp dword [ebx + 0x80], 0x50
je 0x40b5c3
cmp eax, 2
jne 0x40b58d
cmp dword [ebx + 0x80], 0x1bb
je 0x40b5c3
mov ecx, dword [ebx + 0x80]
push ecx
xor eax, eax
lea edx, [esp + 0x40]
push 0x441fbc
push edx
mov word [esp + 0x48], si
mov dword [esp + 0x4a], eax
mov dword [esp + 0x4e], eax
call fcn.00421f49
add esp, 0xc
lea eax, [esp + 0x20]
push eax
lea edx, [esp + 0x40]
call fcn.0040bfc0
lea ecx, [esp + 0x20]
push ecx
mov edx, edi
call fcn.0040bfc0
mov eax, dword [ebx + 0x98]
mov edi, dword [eax]
lea esi, [ebx + 0x94]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x18], esi
jmp 0x40b5f0
test esi, esi
mov edx, dword [ebx + 0x98]
lea eax, [ebx + 0x94]
mov dword [esp + 0x14], edx
je 0x40b608
cmp esi, eax
je 0x40b60d
call fcn.00421af8
cmp edi, dword [esp + 0x14]
je 0x40b698
test esi, esi
jne 0x40b620
call fcn.00421af8
cmp edi, dword [esi + 4]
jne 0x40b62a
call fcn.00421af8
mov eax, dword [edi + 8]
mov ecx, 0x10
cmp dword [eax + 0x34], ecx
jb 0x40b63c
mov edx, dword [eax + 0x20]
jmp 0x40b63f
lea edx, [eax + 0x20]
cmp dword [eax + 0x18], ecx
jb 0x40b649
mov eax, dword [eax + 4]
jmp 0x40b64c
add eax, 4
cmp dword [esp + 0x38], ecx
mov ecx, dword [esp + 0x24]
jae 0x40b65a
lea ecx, [esp + 0x24]
push edx
push eax
push ecx
call dword [sym.imp.WININET.dll_InternetSetCookieA]
test eax, eax
je 0x40b681
lea edi, [esp + 0x3c]
lea esi, [esp + 0x18]
call fcn.0040c000
mov edi, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
jmp 0x40b5f0
push 0x4462cc
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x18], str.add_cookie_failed...
call fcn.00422a93
lea ecx, [esp + 0x20]
mov dword [esp + 0x58], 0xffffffff
call fcn.004077a0
xor esi, esi
mov ecx, dword [ebx + 0xc]
push esi
push esi
push esi
push esi
push ecx
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
jne 0x40b6e1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x40b6e1
push 0x4462cc
lea edx, [esp + 0x1c]
push edx
mov dword [esp + 0x20], str.asynchronized_request_failed...
call fcn.00422a93
mov al, 1
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.00420bdf
mov esp, ebp
pop ebp
ret 8
push 0x4462cc
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x18], str.request_failed...
call fcn.00422a93
push 0x4462cc
lea ecx, [esp + 0x14]
push ecx
mov dword [esp + 0x18], str.handle_not_opened...
call fcn.00422a93
int3