Function at 0x412520
Capabilities:
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46dff8
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
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 + 0xc]
mov ebx, ecx
mov dword [ebp - 0x3c], eax
mov eax, dword [ebx + 8]
mov dword [ebp - 0x40], ebx
test eax, eax
je 0x412971
cmp eax, 0xffffffff
je 0x412971
test edi, edi
je 0x41259d
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
cmp esi, 0x3fffffff
jle 0x412587
xor edi, edi
jmp 0x41259d
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 - 0x3c]
test eax, eax
je 0x4125d1
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
cmp esi, 0x3fffffff
jle 0x4125ba
xor eax, eax
jmp 0x4125d1
lea eax, [esi + esi]
call fcn.00453210
mov ecx, dword [ebp - 0x3c]
mov eax, esp
push 3
push esi
push ecx
push eax
call fcn.00410160
xor edx, edx
cmp dword [ebx + 0xa0], 2
push 0
setne dl
dec edx
and edx, 0x800000
or edx, 0x4400040
push edx
push 0x48dec8
push edi
push str.HTTP_1.0
push eax
mov eax, dword [ebx + 8]
push str.POST
push eax
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov dword [ebx + 0xc], eax
test eax, eax
je 0x41295c
cmp eax, 0xffffffff
je 0x41295c
push SysReAllocStringLen
push 0xd
push str.Accept:___r_n
push eax
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersW]
test eax, eax
jne 0x412648
push 0x486048
lea ecx, [ebp - 0x3c]
push ecx
mov dword [ebp - 0x3c], str.additional_header_failed...
call fcn.0044aada
cmp dword [ebx + 0xf4], 0
je 0x4126a3
cmp dword [ebx + 0xf8], 0x10
lea esi, [ebx + 0xe0]
jb 0x412665
mov eax, dword [esi + 4]
jmp 0x412668
lea eax, [esi + 4]
mov edx, dword [ebx + 0xc]
push 0x10000000
push 0xffffffffffffffff
push eax
push edx
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersA]
test eax, eax
jne 0x41269e
call fcn.00413ff0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x486048
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x3c], str.additional_header_failed...
call fcn.0044aada
call fcn.00413ff0
xor esi, esi
cmp dword [ebx + 0xd8], esi
jbe 0x4128bf
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 0x4126d9
sub eax, 1
jne 0x4126e6
push str.https:__
jmp 0x4126de
push str.http:__
lea ecx, [ebp - 0x38]
call fcn.00408ee0
cmp dword [ebx + 0x28], 0x10
jb 0x4126f1
mov eax, dword [ebx + 0x14]
jmp 0x4126f4
lea eax, [ebx + 0x14]
push eax
lea ecx, [ebp - 0x38]
call fcn.0040e0d0
mov eax, dword [ebx + 0xa0]
cmp eax, 1
jne 0x412711
cmp dword [ebx + 0x9c], 0x50
je 0x412756
cmp eax, 2
jne 0x412722
cmp dword [ebx + 0x9c], 0x1bb
je 0x412756
mov edx, dword [ebx + 0x9c]
push edx
xor eax, eax
push 0x47ced4
mov dword [ebp - 0x1a], eax
mov dword [ebp - 0x16], eax
lea eax, [ebp - 0x1c]
xor ecx, ecx
push 0xa
push eax
mov word [ebp - 0x1c], cx
call fcn.0044d461
add esp, 0x10
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x38]
call fcn.0040e0d0
mov edx, dword [ebp - 0x3c]
push edx
lea ecx, [ebp - 0x38]
call fcn.0040e0d0
mov eax, dword [ebx + 0xd4]
mov eax, dword [eax]
mov dword [ebp - 0x44], eax
mov eax, dword [ebx + 0xc0]
mov dword [ebp - 0x48], eax
jmp 0x412780
mov esi, dword [ebx + 0xd4]
mov ecx, dword [ebx + 0xc0]
test eax, eax
je 0x412794
cmp eax, ecx
je 0x412799
call fcn.0044c44a
cmp dword [ebp - 0x44], esi
je 0x4128b0
lea esi, [ebp - 0x48]
call fcn.00414070
mov ebx, dword [eax]
cmp dword [ebx + 0x34], 0x10
jb 0x4127b7
mov edi, dword [ebx + 0x20]
jmp 0x4127ba
lea edi, [ebx + 0x20]
test edi, edi
jne 0x4127c3
mov dword [ebp - 0x3c], edi
jmp 0x4127f5
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
cmp esi, 0x3fffffff
jle 0x4127de
mov dword [ebp - 0x3c], 0
jmp 0x4127f5
lea eax, [esi + esi]
call fcn.00453210
mov eax, esp
push 3
push esi
push edi
push eax
call fcn.00410160
mov dword [ebp - 0x3c], eax
cmp dword [ebx + 0x18], 0x10
jb 0x412800
mov edi, dword [ebx + 4]
jmp 0x412803
lea edi, [ebx + 4]
test edi, edi
jne 0x41280b
xor ebx, ebx
jmp 0x412837
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
cmp esi, 0x3fffffff
jle 0x412821
xor ebx, ebx
jmp 0x412837
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 0x412848
mov edi, dword [ebp - 0x34]
test edi, edi
jne 0x41284b
xor eax, eax
jmp 0x412875
lea edi, [ebp - 0x34]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
cmp esi, 0x3fffffff
jle 0x412861
xor eax, eax
jmp 0x412875
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 - 0x3c]
push ecx
push ebx
push eax
call dword [sym.imp.WININET.dll_InternetSetCookieW]
test eax, eax
je 0x41289b
lea edi, [ebp - 0x1c]
lea esi, [ebp - 0x48]
call fcn.004140a0
mov eax, dword [ebp - 0x48]
mov ebx, dword [ebp - 0x40]
jmp 0x412780
push 0x486048
lea edx, [ebp - 0x40]
push edx
mov dword [ebp - 0x40], 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 [ebx + 0xc]
push esi
push 0x31
push str.Content_Type:_application_x_www_form_urlencoded_r_n
push eax
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
jne 0x41292d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2f88
je 0x41292d
push esi
push 0
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push 0x486048
lea ecx, [ebp - 0x40]
push ecx
mov dword [ebp - 0x40], 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 - 0x58]
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 8
push 0x486048
lea edx, [ebp - 0x3c]
push edx
mov dword [ebp - 0x3c], str.request_failed...
call fcn.0044aada
push 0x486048
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x3c], str.handle_not_opened...
call fcn.0044aada
int3