Function at 0x40dff0
Capabilities:
Prepare http request

Disassembly:
push 0xffffffffffffffff
push 0x43b788
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x44a5d0]
xor eax, esp
mov dword [esp + 0x5c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x44a5d0]
xor eax, esp
push eax
lea eax, [esp + 0x74]
mov dword fs:[0], eax
mov eax, dword [esp + 0x88]
mov ebp, dword [esp + 0x84]
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0xc]
xor ebx, ebx
mov byte [esp + 0x16], bl
cmp eax, ebx
je 0x40e04d
push eax
call esi
mov dword [ebp + 0xc], ebx
mov eax, dword [ebp + 8]
cmp eax, ebx
je 0x40e05a
push eax
call esi
mov dword [ebp + 8], ebx
mov esi, dword [ebp + 0x1a0]
mov dword [ebp + 0x118], ebx
cmp dword [esi + 0x20], ebx
je 0x40e077
mov edx, dword [esi]
mov eax, dword [edx + 0xc]
mov ecx, esi
call eax
mov dword [esi + 0x20], ebx
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov edi, 2
push edi
mov ecx, esi
call eax
test al, al
je 0x40e08d
mov dword [esi + 0x20], edi
cmp dword [esi + 0x20], ebx
jne 0x40e09f
mov dword [ebp + 0x110], edi
mov al, bl
jmp 0x40e284
mov eax, dword [esp + 0x18]
xor ecx, ecx
push 0xffffffffffffffff
mov word [esp + 0x24], cx
mov edi, 7
push ebx
lea ecx, [esp + 0x24]
mov dword [esp + 0x3c], edi
mov dword [esp + 0x38], ebx
call fcn.00408690
mov dword [esp + 0x7c], ebx
cmp dword [ebp + 0x28], ebx
je 0x40e262
lea eax, [esp + 0x1c]
call fcn.0040cdb0
test al, al
je 0x40e262
mov esi, ebp
call fcn.0040dc70
test al, al
je 0x40e26c
mov edx, dword [ebp + 0x19c]
mov eax, dword [ebp + 0x198]
mov ecx, dword [ebp + 0x194]
push edx
mov edx, dword [ebp + 0x190]
push eax
mov eax, dword [ebp + 4]
push ecx
push edx
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpSetTimeouts]
mov ecx, dword [ebp + 4]
push ebx
push 0x10000
push 0x40e2e0
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
sub esp, 0x1c
mov byte [esp + 0x9c], 2
lea edx, [ebp + 0x14]
mov esi, esp
mov dword [esp + 0x38], esp
push edx
lea ebx, [esp + 0x3c]
lea edi, [esp + 0x5c]
call fcn.00409800
lea ecx, [esp + 0x74]
call fcn.0040de00
test al, al
je 0x40e24e
mov eax, dword [esp + 0x58]
mov edi, 8
cmp dword [esp + 0x6c], edi
jae 0x40e194
lea eax, [esp + 0x58]
mov ecx, dword [esp + 0x18]
mov edx, dword [ebp + 4]
push 0
push ecx
push eax
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov dword [ebp + 8], eax
test eax, eax
je 0x40e247
mov bl, byte [esp + 0x17]
mov esi, dword [esp + 0x3c]
movzx ecx, bl
neg ecx
sbb ecx, ecx
and ecx, 0x800000
cmp dword [esp + 0x50], edi
jae 0x40e1d0
lea esi, [esp + 0x3c]
mov edx, dword [esp + 0x20]
cmp dword [esp + 0x34], edi
jae 0x40e1de
lea edx, [esp + 0x20]
push ecx
push 0
push 0
push 0
push esi
push edx
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov dword [ebp + 0xc], eax
test eax, eax
je 0x40e247
cmp byte [ebp + 0x10], 0
jne 0x40e217
test bl, bl
je 0x40e217
push 4
lea ecx, [esp + 0x1c]
push ecx
push 0x1f
push eax
mov dword [esp + 0x28], 0x3100
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp + 0xd8]
push ebp
call fcn.0040dcc0
test al, al
je 0x40e247
mov eax, dword [ebp + 0xc]
lea edi, [ebp + 0xb4]
push eax
mov ecx, ebp
call fcn.0040dd10
test al, al
je 0x40e247
mov byte [esp + 0x16], 1
jmp 0x40e24e
mov esi, ebp
call fcn.0040e2b0
lea esi, [esp + 0x38]
call fcn.00406c90
lea esi, [esp + 0x54]
call fcn.00406c90
jmp 0x40e26c
mov dword [ebp + 0x110], 0x57
cmp dword [esp + 0x34], 8
jb 0x40e280
mov ecx, dword [esp + 0x20]
push ecx
call fcn.004258ad
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.00425821
add esp, 0x6c
ret 8