Function at 0x414840
Capabilities:
Prepare http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x454483
mov eax, dword fs:[0]
push eax
sub esp, 0x84
mov eax, dword [0x471078]
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 ebx, ecx
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x30], eax
mov dword [ebp - 4], 1
call fcn.00414750
lea eax, [ebp + 0x10]
mov ecx, ebx
push eax
call fcn.00414e60
lea ecx, [ebp + 0x18]
push ecx
lea ecx, [ebx + 8]
call fcn.00414e60
lea eax, [ebp - 0x90]
mov ecx, edi
push eax
call fcn.00411810
mov esi, eax
lea eax, [ebp - 0x78]
mov byte [ebp - 4], 2
push eax
mov ecx, edi
call fcn.00414030
push ecx
mov edx, eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x60]
call fcn.004111d0
add esp, 4
push esi
mov edx, eax
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x28]
call fcn.00414f10
add esp, 4
mov eax, dword [ebp - 0x4c]
cmp eax, 0x10
jb 0x4148f4
inc eax
lea ecx, [ebp - 0x60]
push eax
push dword [ebp - 0x60]
call fcn.0040cae0
mov dword [ebp - 0x4c], 0xf
mov dword [ebp - 0x50], 0
mov byte [ebp - 0x60], 0
mov eax, dword [ebp - 0x64]
cmp eax, 8
jb 0x41491b
inc eax
lea ecx, [ebp - 0x78]
push eax
push dword [ebp - 0x78]
call fcn.0040ca80
xor eax, eax
mov dword [ebp - 0x64], 7
mov dword [ebp - 0x68], 0
mov word [ebp - 0x78], ax
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x7c]
cmp eax, 0x10
jb 0x41494e
inc eax
lea ecx, [ebp - 0x90]
push eax
push dword [ebp - 0x90]
call fcn.0040cae0
push 0xfde9
lea edx, [ebp - 0x28]
mov dword [ebp - 0x7c], 0xf
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x80], 0
mov byte [ebp - 0x90], 0
call fcn.00411210
add esp, 4
lea edx, [edi + 0x10]
cmp dword [edi + 0x14], 0x10
mov esi, eax
jb 0x414983
mov edi, dword [edi]
mov edx, dword [edx]
mov ecx, edi
push 5
push str.https
call fcn.0040b9f0
add esp, 8
mov edx, eax
cmp dword [esi + 0x14], 8
jb 0x4149a0
mov esi, dword [esi]
mov ecx, dword [ebp - 0x30]
cmp dword [ecx + 0x14], 8
jb 0x4149ab
mov ecx, dword [ecx]
test edx, edx
mov eax, 0x40
mov edi, 0x800040
cmove eax, edi
push eax
push 0
push 0
push 0
push esi
push ecx
push dword [ebx + 8]
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov dword [ebx + 0x10], eax
mov eax, dword [ebp - 0x34]
cmp eax, 8
jb 0x4149e4
inc eax
lea ecx, [ebp - 0x48]
push eax
push dword [ebp - 0x48]
call fcn.0040ca80
mov eax, dword [ebx + 0x10]
test eax, eax
jne 0x414a11
push str.Unable_to_initialize_WinHTTP_request_
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.0041b5b0
add esp, 0xc
lea eax, [ebp - 0x44]
push 0x46edb0
push eax
call fcn.00438104
push 4
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x2c], ebx
push ecx
push 0x2d
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
jne 0x414a2e
push str.Unable_to_set_WinHTTP_context_
jmp 0x4149f0
push 0
push 0xffffffffffffffff
push 0x414010
push dword [ebx + 0x10]
call dword [sym.imp.WINHTTP.dll_WinHttpSetStatusCallback]
cmp eax, 0xffffffff
jne 0x414a4c
push str.Unable_to_set_WinHTTP_status_callback_
jmp 0x4149f0
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x414a61
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.0040cae0
lea ecx, [ebp + 0x10]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.004125b0
lea ecx, [ebp + 0x18]
call fcn.004125b0
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.0041e04a
mov esp, ebp
pop ebp
ret 0x18