Function at 0x40f9a0
Capabilities:
Prepare http request

Disassembly:
push 0xffffffffffffffff
push 0x43a788
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x44cc30]
xor eax, esp
mov dword [esp + 0x5c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x44cc30]
xor eax, esp
push eax
lea eax, [esp + 0x74]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x84]
mov edi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov esi, ecx
mov eax, dword [esi + 0xc]
xor ebx, ebx
mov byte [esp + 0x16], bl
cmp eax, ebx
je 0x40f9f4
push eax
call edi
mov dword [esi + 0xc], ebx
mov eax, dword [esi + 8]
cmp eax, ebx
je 0x40fa01
push eax
call edi
mov dword [esi + 8], ebx
mov ecx, dword [esi + 0x1a4]
push 2
mov dword [esi + 0x11c], ebx
call fcn.0040c1c0
test al, al
jne 0x40fa29
mov dword [esi + 0x114], 2
mov al, bl
jmp 0x40fbfe
push 0xffffffffffffffff
push ebx
xor eax, eax
mov edi, 7
push ebp
lea ecx, [esp + 0x28]
mov dword [esp + 0x40], edi
mov dword [esp + 0x3c], ebx
mov word [esp + 0x2c], ax
call fcn.00408440
mov dword [esp + 0x7c], ebx
lea ebp, [edi + 1]
cmp dword [esi + 0x28], ebx
je 0x40fbdd
lea ecx, [esp + 0x1c]
push ecx
mov ecx, esi
call fcn.0040ee90
test al, al
je 0x40fbdd
mov ecx, esi
call fcn.0040d290
test al, al
je 0x40fbe7
mov edx, dword [esi + 0x1a0]
mov eax, dword [esi + 0x19c]
mov ecx, dword [esi + 0x198]
push edx
mov edx, dword [esi + 0x194]
push eax
mov eax, dword [esi + 4]
push ecx
push edx
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpSetTimeouts]
mov ecx, dword [esi + 4]
push ebx
push 0x10000
push 0x40ce90
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpSetStatusCallback]
xor edx, edx
mov dword [esp + 0x6c], edi
mov dword [esp + 0x68], ebx
mov word [esp + 0x58], dx
xor eax, eax
mov dword [esp + 0x50], edi
mov dword [esp + 0x4c], ebx
mov word [esp + 0x3c], ax
lea ecx, [esp + 0x17]
push ecx
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x60]
push ecx
sub esp, 0x1c
lea edx, [esi + 0x14]
mov ecx, esp
mov dword [esp + 0x44], esp
push edx
mov byte [esp + 0xac], 2
call fcn.00409400
mov ecx, esi
call fcn.0040f0f0
cmp al, bl
je 0x40fbc9
mov eax, dword [esp + 0x58]
cmp dword [esp + 0x6c], ebp
jae 0x40fb21
lea eax, [esp + 0x58]
mov ecx, dword [esp + 0x18]
mov edx, dword [esi + 4]
push ebx
push ecx
push eax
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov dword [esi + 8], eax
cmp eax, ebx
je 0x40fbc2
movzx ecx, byte [esp + 0x17]
mov edi, dword [esp + 0x3c]
neg ecx
sbb ecx, ecx
and ecx, 0x800000
cmp dword [esp + 0x50], ebp
jae 0x40fb5a
lea edi, [esp + 0x3c]
mov edx, dword [esp + 0x20]
cmp dword [esp + 0x34], ebp
jae 0x40fb68
lea edx, [esp + 0x20]
push ecx
push ebx
push ebx
push ebx
push edi
push edx
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov dword [esi + 0xc], eax
cmp eax, ebx
je 0x40fbc2
cmp byte [esi + 0x10], bl
jne 0x40fb8f
cmp byte [esp + 0x17], bl
je 0x40fb8f
push eax
mov ecx, esi
call fcn.0040c990
mov ecx, dword [esi + 0xc]
lea eax, [esi + 0xdc]
push eax
push ecx
mov ecx, esi
call fcn.0040d2e0
test al, al
je 0x40fbc2
mov eax, dword [esi + 0xc]
lea edx, [esi + 0xb8]
push edx
push eax
mov ecx, esi
call fcn.0040f8b0
test al, al
je 0x40fbc2
mov byte [esp + 0x16], 1
jmp 0x40fbc9
mov ecx, esi
call fcn.0040d0a0
lea ecx, [esp + 0x38]
call fcn.00406db0
lea ecx, [esp + 0x54]
call fcn.00406db0
jmp 0x40fbe7
mov dword [esi + 0x114], 0x57
cmp dword [esp + 0x34], ebp
jb 0x40fbfa
mov ecx, dword [esp + 0x20]
push ecx
call fcn.004268c7
add esp, 4
mov al, byte [esp + 0x16]
mov ecx, dword [esp + 0x74]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x5c]
xor ecx, esp
call fcn.004271ab
add esp, 0x6c
ret 4