Function at 0x40aa50
Capabilities:
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x45fb42
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push edi
mov eax, dword [0x47c824]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov dword [esp + 0x24], 0
mov dword [esp + 0x10], 0
call fcn.0042386c
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40aa9e
push 0x80004005
call fcn.00401cb0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 8], eax
mov byte [esp + 0x24], 1
call fcn.0042386c
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40aacd
push 0x80004005
call fcn.00401cb0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0xc], eax
mov byte [esp + 0x24], 2
call fcn.0040a9f0
push 0x14
call fcn.00420eb3
add esp, 4
mov dword [esp + 0x18], eax
test eax, eax
mov byte [esp + 0x24], 3
je 0x40ab13
push 0
push 0
push 0
push 0
push 1
push 0
mov ecx, eax
call fcn.00422ccf
jmp 0x40ab15
xor eax, eax
mov byte [esp + 0x24], 2
mov edi, 0x10
cmp dword [esp + 0x44], edi
mov dword [0x481220], eax
mov eax, dword [esp + 0x30]
jae 0x40ab32
lea eax, [esp + 0x30]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x10]
push edx
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x1c]
push edx
push eax
call fcn.00423298
test eax, eax
jne 0x40abcc
push str.http
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov byte [esp + 0x24], 1
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ab80
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x24], 0
mov eax, dword [esp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40aba5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esp + 0x44], edi
jb 0x40abb8
mov ecx, dword [esp + 0x30]
push ecx
call fcn.00420ede
add esp, 4
or eax, 0xffffffff
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
add esp, 0x20
ret
mov eax, dword [esp + 8]
cmp dword [eax - 0xc], 0
jg 0x40ac54
push str.http
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov byte [esp + 0x24], 1
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40ac06
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x24], 0
mov eax, dword [esp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ac2b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esp + 0x44], edi
jb 0x40ac3e
mov ecx, dword [esp + 0x30]
push ecx
call fcn.00420ede
add esp, 4
mov eax, 0xfffffffd
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
add esp, 0x20
ret
mov edx, dword [esp + 0x14]
mov ecx, dword [0x481220]
push 0
push 0
push edx
push eax
call fcn.00423780
test eax, eax
mov dword [0x481224], eax
jne 0x40acf0
push str.httpl
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov byte [esp + 0x24], 1
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40aca2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x24], 0
mov eax, dword [esp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40acc7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esp + 0x44], edi
jb 0x40acda
mov ecx, dword [esp + 0x30]
push ecx
call fcn.00420ede
add esp, 4
mov eax, 0xfffffffe
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
add esp, 0x20
ret
mov byte [esp + 0x24], 1
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40ad15
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x24], 0
mov eax, dword [esp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ad3a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esp + 0x44], edi
jb 0x40ad4d
mov ecx, dword [esp + 0x30]
push ecx
call fcn.00420ede
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
add esp, 0x20
ret