Function at 0x412990
Capabilities:
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46dfc8
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x48b998]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x40], eax
mov eax, dword [ebx + 8]
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x3c], ecx
test eax, eax
je 0x412d83
cmp eax, 0xffffffff
je 0x412d83
test edi, edi
je 0x412a13
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
cmp esi, 0x3fffffff
jle 0x4129fd
xor edi, edi
jmp 0x412a13
lea eax, [esi + esi]
call fcn.00453210
mov eax, esp
push 3
push esi
push edi
push eax
call fcn.00410160
mov edi, eax
mov eax, dword [ebp - 0x40]
test eax, eax
je 0x412a47
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
cmp esi, 0x3fffffff
jle 0x412a30
xor eax, eax
jmp 0x412a47
lea eax, [esi + esi]
call fcn.00453210
mov edx, dword [ebp - 0x40]
mov eax, esp
push 3
push esi
push edx
push eax
call fcn.00410160
xor ecx, ecx
mov edx, dword [ebx + 8]
xor esi, esi
cmp dword [ebx + 0xa0], 2
push esi
setne cl
dec ecx
and ecx, 0x800000
or ecx, 0x4400040
push ecx
push 0x48ded0
push edi
push str.HTTP_1.0
push eax
push str.POST
push edx
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov ecx, dword [ebp - 0x3c]
mov dword [ecx], eax
cmp eax, esi
je 0x412d6e
cmp eax, 0xffffffff
je 0x412d6e
push SysReAllocStringLen
push 0xd
push str.Accept:___r_n
push eax
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersW]
test eax, eax
jne 0x412ac1
push 0x486048
lea edx, [ebp - 0x3c]
push edx
mov dword [ebp - 0x3c], str.additional_header_failed...
call fcn.0044aada
cmp dword [ebx + 0xd8], esi
jbe 0x412ccf
mov dword [ebp - 0x20], 0xf
mov dword [ebp - 0x24], esi
mov byte [ebp - 0x34], 0
mov dword [ebp - 4], esi
mov eax, dword [ebx + 0xa0]
sub eax, 1
je 0x412af5
sub eax, 1
jne 0x412b02
push str.https:__
jmp 0x412afa
push str.http:__
lea ecx, [ebp - 0x38]
call fcn.00408ee0
cmp dword [ebx + 0x28], 0x10
jb 0x412b0d
mov eax, dword [ebx + 0x14]
jmp 0x412b10
lea eax, [ebx + 0x14]
push eax
lea ecx, [ebp - 0x38]
call fcn.0040e0d0
mov eax, dword [ebx + 0xa0]
cmp eax, 1
jne 0x412b2d
cmp dword [ebx + 0x9c], 0x50
je 0x412b70
cmp eax, 2
jne 0x412b3e
cmp dword [ebx + 0x9c], 0x1bb
je 0x412b70
mov ecx, dword [ebx + 0x9c]
push ecx
push 0x47ced4
xor eax, eax
lea edx, [ebp - 0x1c]
push 0xa
push edx
mov word [ebp - 0x1c], ax
mov dword [ebp - 0x1a], eax
mov dword [ebp - 0x16], eax
call fcn.0044d461
add esp, 0x10
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x38]
call fcn.0040e0d0
mov ecx, dword [ebp - 0x40]
push ecx
lea ecx, [ebp - 0x38]
call fcn.0040e0d0
mov eax, dword [ebx + 0xd4]
mov edx, dword [eax]
mov eax, dword [ebx + 0xc0]
mov dword [ebp - 0x48], edx
mov dword [ebp - 0x4c], eax
mov esi, dword [ebx + 0xd4]
mov ecx, dword [ebx + 0xc0]
test eax, eax
je 0x412ba4
cmp eax, ecx
je 0x412ba9
call fcn.0044c44a
cmp dword [ebp - 0x48], esi
je 0x412cc0
lea esi, [ebp - 0x4c]
call fcn.00414070
mov ebx, dword [eax]
cmp dword [ebx + 0x34], 0x10
jb 0x412bc7
mov edi, dword [ebx + 0x20]
jmp 0x412bca
lea edi, [ebx + 0x20]
test edi, edi
jne 0x412bd3
mov dword [ebp - 0x40], edi
jmp 0x412c05
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
cmp esi, 0x3fffffff
jle 0x412bee
mov dword [ebp - 0x40], 0
jmp 0x412c05
lea eax, [esi + esi]
call fcn.00453210
mov eax, esp
push 3
push esi
push edi
push eax
call fcn.00410160
mov dword [ebp - 0x40], eax
cmp dword [ebx + 0x18], 0x10
jb 0x412c10
mov edi, dword [ebx + 4]
jmp 0x412c13
lea edi, [ebx + 4]
test edi, edi
jne 0x412c1b
xor ebx, ebx
jmp 0x412c47
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
cmp esi, 0x3fffffff
jle 0x412c31
xor ebx, ebx
jmp 0x412c47
lea eax, [esi + esi]
call fcn.00453210
mov eax, esp
push 3
push esi
push edi
push eax
call fcn.00410160
mov ebx, eax
cmp dword [ebp - 0x20], 0x10
jb 0x412c58
mov edi, dword [ebp - 0x34]
test edi, edi
jne 0x412c5b
xor eax, eax
jmp 0x412c85
lea edi, [ebp - 0x34]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
cmp esi, 0x3fffffff
jle 0x412c71
xor eax, eax
jmp 0x412c85
lea eax, [esi + esi]
call fcn.00453210
mov eax, esp
push 3
push esi
push edi
push eax
call fcn.00410160
mov ecx, dword [ebp - 0x40]
push ecx
push ebx
push eax
call dword [sym.imp.WININET.dll_InternetSetCookieW]
test eax, eax
je 0x412cab
lea edi, [ebp - 0x1c]
lea esi, [ebp - 0x4c]
call fcn.004140a0
mov eax, dword [ebp - 0x4c]
mov ebx, dword [ebp - 0x44]
jmp 0x412b90
push 0x486048
lea edx, [ebp - 0x44]
push edx
mov dword [ebp - 0x44], str.add_cookie_failed...
call fcn.0044aada
lea ecx, [ebp - 0x38]
mov dword [ebp - 4], 0xffffffff
call fcn.00402790
push ebx
call fcn.00412300
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
inc eax
push eax
push 8
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push ebx
mov esi, eax
call fcn.00412300
push esi
inc eax
push ebx
call fcn.004123d0
push eax
mov eax, dword [ebp - 0x3c]
mov ecx, dword [eax]
push esi
push 0x31
push str.Content_Type:_application_x_www_form_urlencoded_r_n
push ecx
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
jne 0x412d3f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2f88
je 0x412d3f
push esi
push 0
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push 0x486048
lea edx, [ebp - 0x44]
push edx
mov dword [ebp - 0x44], str.request_failed...
call fcn.0044aada
push esi
push 0
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov al, 1
lea esp, [ebp - 0x5c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0044b1f7
mov esp, ebp
pop ebp
ret 0xc
push 0x486048
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x3c], str.request_failed...
call fcn.0044aada
push 0x486048
lea ecx, [ebp - 0x3c]
push ecx
mov dword [ebp - 0x3c], str.handle_not_opened...
call fcn.0044aada
int3