Function at 0x401489
Capabilities:
Prepare http request

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x45f3af
mov eax, dword fs:[0]
push eax
sub esp, 0x278
mov eax, dword [0x47b570]
xor eax, esp
mov dword [esp + 0x270], eax
push ebx
push esi
push edi
mov eax, dword [0x47b570]
xor eax, esp
push eax
lea eax, [esp + 0x288]
mov dword fs:[0], eax
mov eax, dword [0x47f558]
xor ebx, ebx
mov edi, ecx
mov byte [esp + 0x13], bl
mov dword [esp + 0x28], 2
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], 1
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x290], ebx
cmp eax, ebx
je 0x401541
cmp dword [0x47f55c], ebx
jne 0x401541
lea eax, [edi + 0x40]
cmp dword [eax + 0x14], 8
jb 0x401520
mov eax, dword [eax]
mov ecx, dword [edi + 0xbc]
lea edx, [esp + 0x1c]
push edx
lea edx, [esp + 0x2c]
push edx
push eax
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpGetProxyForUrl]
mov byte [esp + 0x12], 1
test eax, eax
jne 0x401545
mov byte [esp + 0x12], bl
push 0x3c
pop esi
push esi
lea eax, [esp + 0x44]
push ebx
push eax
call fcn.00434cd0
or dword [esp + 0x7c], 0xffffffff
or dword [esp + 0x54], 0xffffffff
mov dword [esp + 0x4c], esi
lea esi, [edi + 0x40]
add esp, 0xc
cmp dword [esi + 0x14], 8
lea eax, [esp + 0x7c]
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], 0x100
jb 0x401582
mov eax, dword [esi]
jmp 0x401584
mov eax, esi
push eax
push 0x30b1
mov ecx, str.dZz17xXZiY9UnOrGcSajwOqkQ
call fcn.00420467
pop ecx
push eax
call fcn.0041f822
cmp dword [esi + 0x14], 8
pop ecx
pop ecx
jb 0x4015a5
mov esi, dword [esi]
lea eax, [esp + 0x40]
push eax
push ebx
push ebx
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpCrackUrl]
test eax, eax
je 0x4016ce
mov eax, dword [edi + 0xbc]
push ebx
push dword [esp + 0x5c]
lea ecx, [esp + 0x84]
push ecx
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
lea esi, [edi + 0xc0]
mov dword [esp + 0x14], eax
call fcn.00401019
mov eax, dword [esp + 0x14]
mov dword [esi], eax
mov esi, eax
cmp esi, ebx
je 0x4016ce
cmp dword [esp + 0x4c], 2
jne 0x401602
mov eax, 0x800000
jmp 0x401604
xor eax, eax
push eax
push ebx
push ebx
push ebx
push dword [esp + 0x7c]
push dword [edi + 0x8c]
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
lea esi, [edi + 0xc4]
mov dword [esp + 0x14], eax
call fcn.00401019
mov eax, dword [esp + 0x14]
mov dword [esi], eax
cmp eax, ebx
je 0x4016ce
cmp byte [esp + 0x12], bl
je 0x40164c
push 0xc
lea ecx, [esp + 0x20]
push ecx
push 0x26
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
mov eax, dword [esi]
push ebx
push 0x7e4000
push 0x401c85
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpSetStatusCallback]
cmp eax, ebx
jne 0x4016ce
mov edx, dword [edi + 0xa0]
xor eax, eax
xor ecx, ecx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
cmp edx, ebx
je 0x401697
or dword [esp + 0x18], 0xffffffff
lea eax, [edi + 0x90]
cmp dword [eax + 0x14], 0x10
mov dword [esp + 0x14], str.Content_Type:_application_x_www_form_urlencoded
jb 0x401695
mov eax, dword [eax]
mov ecx, edx
mov esi, dword [esi]
push edi
push ecx
push ecx
push eax
push dword [esp + 0x28]
push dword [esp + 0x28]
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
je 0x4016ce
push ebx
mov byte [esp + 0x17], 1
mov dword [edi + 0x80], 1
call fcn.00430451
pop ecx
mov dword [edi + 0x78], eax
mov dword [edi + 0x7c], edx
jmp 0x4016e9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0x84], eax
mov dword [edi + 0x80], 3
call fcn.00401a8d
or dword [esp + 0x290], 0xffffffff
lea eax, [esp + 0x1c]
call fcn.00401ebe
mov al, byte [esp + 0x13]
mov ecx, dword [esp + 0x288]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x270]
xor ecx, esp
call fcn.0042fd59
mov esp, ebp
pop ebp
ret