Function at 0x414640
Capabilities:
Prepare http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x453773
mov eax, dword fs:[0]
push eax
sub esp, 0x84
mov eax, dword [0x46f074]
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.00414550
lea eax, [ebp + 0x10]
mov ecx, ebx
push eax
call fcn.00414ae0
lea ecx, [ebp + 0x18]
push ecx
lea ecx, [ebx + 8]
call fcn.00414ae0
lea eax, [ebp - 0x90]
mov ecx, edi
push eax
call fcn.00411780
mov esi, eax
lea eax, [ebp - 0x78]
mov byte [ebp - 4], 2
push eax
mov ecx, edi
call fcn.00413e90
push ecx
mov edx, eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x60]
call fcn.00411140
add esp, 4
push esi
mov edx, eax
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x28]
call fcn.00414b90
add esp, 4
mov eax, dword [ebp - 0x4c]
cmp eax, 0x10
jb 0x4146f4
inc eax
lea ecx, [ebp - 0x60]
push eax
push dword [ebp - 0x60]
call fcn.0040ca60
mov dword [ebp - 0x4c], 0xf
mov dword [ebp - 0x50], 0
mov byte [ebp - 0x60], 0
mov eax, dword [ebp - 0x64]
cmp eax, 8
jb 0x41471b
inc eax
lea ecx, [ebp - 0x78]
push eax
push dword [ebp - 0x78]
call fcn.0040ca00
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 0x41474e
inc eax
lea ecx, [ebp - 0x90]
push eax
push dword [ebp - 0x90]
call fcn.0040ca60
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.00411180
add esp, 4
lea edx, [edi + 0x10]
cmp dword [edi + 0x14], 0x10
mov esi, eax
jb 0x414783
mov edi, dword [edi]
mov edx, dword [edx]
mov ecx, edi
push 5
push str.https
call fcn.0040b970
add esp, 8
mov edx, eax
cmp dword [esi + 0x14], 8
jb 0x4147a0
mov esi, dword [esi]
mov ecx, dword [ebp - 0x30]
cmp dword [ecx + 0x14], 8
jb 0x4147ab
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 0x4147e4
inc eax
lea ecx, [ebp - 0x48]
push eax
push dword [ebp - 0x48]
call fcn.0040ca00
mov eax, dword [ebx + 0x10]
test eax, eax
jne 0x414811
push str.Unable_to_initialize_WinHTTP_request_
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.0041a770
add esp, 0xc
lea eax, [ebp - 0x40]
push 0x46d888
push eax
call fcn.00437394
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 0x41482e
push str.Unable_to_set_WinHTTP_context_
jmp 0x4147f0
push 0
push 0xffffffffffffffff
push 0x413e70
push dword [ebx + 0x10]
call dword [sym.imp.WINHTTP.dll_WinHttpSetStatusCallback]
cmp eax, 0xffffffff
jne 0x41484c
push str.Unable_to_set_WinHTTP_status_callback_
jmp 0x4147f0
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x414861
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.0040ca60
lea ecx, [ebp + 0x10]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.00412430
lea ecx, [ebp + 0x18]
call fcn.00412430
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.0041d21a
mov esp, ebp
pop ebp
ret 0x18