Function at 0x442d40
Capabilities:
Prepare http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x459898
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x46d394]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x7c], ecx
mov byte [ebp - 0xd], 0
mov ecx, dword [ebp - 0x7c]
call fcn.00441840
push 2
mov eax, dword [ebp - 0x7c]
mov ecx, dword [eax + 0x1a4]
call fcn.004438f0
movzx ecx, al
test ecx, ecx
jne 0x442da0
mov edx, dword [ebp - 0x7c]
mov dword [edx + 0x114], 2
jmp 0x442fbd
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x30]
call fcn.004093c0
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x7c]
add ecx, 0x14
call fcn.00413ed0
movzx ecx, al
test ecx, ecx
jne 0x442dd8
lea edx, [ebp - 0x30]
push edx
mov ecx, dword [ebp - 0x7c]
call fcn.004429d0
movzx eax, al
test eax, eax
jne 0x442dea
mov ecx, dword [ebp - 0x7c]
mov dword [ecx + 0x114], 0x57
jmp 0x442fae
mov ecx, dword [ebp - 0x7c]
call fcn.004420f0
movzx edx, al
test edx, edx
je 0x442fae
mov eax, dword [ebp - 0x7c]
mov ecx, dword [eax + 0x1a0]
push ecx
mov edx, dword [ebp - 0x7c]
mov eax, dword [edx + 0x19c]
push eax
mov ecx, dword [ebp - 0x7c]
mov edx, dword [ecx + 0x198]
push edx
mov eax, dword [ebp - 0x7c]
mov ecx, dword [eax + 0x194]
push ecx
mov edx, dword [ebp - 0x7c]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpSetTimeouts]
push 0
push 0x10000
push 0x441810
mov ecx, dword [ebp - 0x7c]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpSetStatusCallback]
lea ecx, [ebp - 0x70]
call fcn.00407980
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x54]
call fcn.00407980
mov byte [ebp - 4], 2
lea eax, [ebp - 0x35]
push eax
lea ecx, [ebp - 0x34]
push ecx
lea edx, [ebp - 0x54]
push edx
lea eax, [ebp - 0x70]
push eax
mov ecx, dword [ebp - 0x7c]
add ecx, 0x14
sub esp, 0x1c
mov edx, esp
mov dword [ebp - 0x78], esp
push ecx
mov ecx, edx
call fcn.004093c0
mov dword [ebp - 0x80], eax
mov ecx, dword [ebp - 0x7c]
call fcn.004425b0
mov byte [ebp - 0x81], al
movzx eax, byte [ebp - 0x81]
test eax, eax
je 0x442f96
push 0
movzx ecx, word [ebp - 0x34]
push ecx
lea ecx, [ebp - 0x70]
call fcn.00407120
push eax
mov edx, dword [ebp - 0x7c]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov ecx, dword [ebp - 0x7c]
mov dword [ecx + 8], eax
mov edx, dword [ebp - 0x7c]
cmp dword [edx + 8], 0
je 0x442f86
movzx eax, byte [ebp - 0x35]
neg eax
sbb eax, eax
and eax, 0x800000
mov dword [ebp - 0x74], eax
mov ecx, dword [ebp - 0x74]
push ecx
push 0
push 0
push 0
lea ecx, [ebp - 0x54]
call fcn.00407120
push eax
lea ecx, [ebp - 0x30]
call fcn.00407120
push eax
mov edx, dword [ebp - 0x7c]
mov eax, dword [edx + 8]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov ecx, dword [ebp - 0x7c]
mov dword [ecx + 0xc], eax
mov edx, dword [ebp - 0x7c]
cmp dword [edx + 0xc], 0
je 0x442f86
mov eax, dword [ebp - 0x7c]
movzx ecx, byte [eax + 0x10]
test ecx, ecx
jne 0x442f43
movzx edx, byte [ebp - 0x35]
test edx, edx
je 0x442f43
mov eax, dword [ebp - 0x7c]
mov ecx, dword [eax + 0xc]
push ecx
mov ecx, dword [ebp - 0x7c]
call fcn.00441db0
mov edx, dword [ebp - 0x7c]
add edx, 0xdc
push edx
mov eax, dword [ebp - 0x7c]
mov ecx, dword [eax + 0xc]
push ecx
mov ecx, dword [ebp - 0x7c]
call fcn.00442090
movzx edx, al
test edx, edx
je 0x442f86
mov eax, dword [ebp - 0x7c]
add eax, 0xb8
push eax
mov ecx, dword [ebp - 0x7c]
mov edx, dword [ecx + 0xc]
push edx
mov ecx, dword [ebp - 0x7c]
call fcn.00442cb0
movzx eax, al
test eax, eax
je 0x442f86
mov byte [ebp - 0xd], 1
movzx ecx, byte [ebp - 0xd]
test ecx, ecx
jne 0x442f96
mov ecx, dword [ebp - 0x7c]
call fcn.00441840
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x54]
call fcn.00407100
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x70]
call fcn.00407100
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.00407100
mov al, byte [ebp - 0xd]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0042e367
mov esp, ebp
pop ebp
ret 4