Function at 0x40ae20
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x487a9e
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push esi
push edi
mov eax, dword [0x59134c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi], vtable.FCHttpRequestManager.0
xor edi, edi
mov dword [ebp - 4], edi
mov eax, dword [esi + 0x34]
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x30], edi
lea ecx, [ebp - 0x38]
push ecx
mov ecx, esi
mov byte [ebp - 4], 2
call fcn.0040abe0
mov ebx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x38]
sub ebx, eax
sar ebx, 2
cmp ebx, edi
je 0x40aecc
mov edx, dword [esi + 0x38]
push edx
push 1
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
test ebx, ebx
je 0x40aeca
jmp 0x40aea0
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax + edi*4]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x40aec5
mov edx, dword [ebp - 0x38]
mov eax, dword [edx + edi*4]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
inc edi
cmp edi, ebx
jb 0x40aea0
xor edi, edi
cmp dword [esi + 0x14], 0
jbe 0x40af25
push edi
lea ecx, [ebp - 0x1c]
push ecx
lea edx, [ebp - 0x28]
push edx
lea ecx, [esi + 4]
call fcn.004085b0
mov ecx, eax
call fcn.00408680
mov ecx, dword [eax]
test ecx, ecx
jne 0x40aef4
xor ebx, ebx
jmp 0x40aef6
mov ebx, dword [ecx]
mov ecx, dword [eax + 8]
mov edx, dword [ebx + 8]
mov eax, ecx
shr eax, 2
and ecx, 3
cmp edx, eax
ja 0x40af0a
sub eax, edx
mov edx, dword [ebx + 4]
mov eax, dword [edx + eax*4]
mov ecx, dword [eax + ecx*4]
test ecx, ecx
je 0x40af1f
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
inc edi
cmp edi, dword [esi + 0x14]
jb 0x40aed2
xor edi, edi
cmp dword [esi + 0x2c], edi
jbe 0x40af7f
push edi
lea ecx, [ebp - 0x28]
push ecx
lea edx, [ebp - 0x1c]
push edx
lea ecx, [esi + 0x1c]
call fcn.004085b0
mov ecx, eax
call fcn.00408680
mov ecx, dword [eax]
test ecx, ecx
jne 0x40af4e
xor ebx, ebx
jmp 0x40af50
mov ebx, dword [ecx]
mov ecx, dword [eax + 8]
mov edx, dword [ebx + 8]
mov eax, ecx
shr eax, 2
and ecx, 3
cmp edx, eax
ja 0x40af64
sub eax, edx
mov edx, dword [ebx + 4]
mov eax, dword [edx + eax*4]
mov ecx, dword [eax + ecx*4]
test ecx, ecx
je 0x40af79
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
inc edi
cmp edi, dword [esi + 0x2c]
jb 0x40af2c
mov eax, dword [ebp - 0x38]
xor edi, edi
cmp eax, edi
je 0x40af91
push eax
call fcn.0046afbc
add esp, 4
mov eax, dword [esi + 0x2c]
cmp eax, edi
je 0x40afaa
cmp eax, edi
je 0x40afa5
dec eax
mov dword [esi + 0x2c], eax
jne 0x40afa5
mov dword [esi + 0x28], edi
cmp dword [esi + 0x2c], edi
jne 0x40af98
mov ebx, dword [esi + 0x24]
xor edi, edi
cmp ebx, edi
jbe 0x40afce
mov ecx, dword [esi + 0x20]
dec ebx
cmp dword [ecx + ebx*4], edi
lea eax, [ecx + ebx*4]
je 0x40afca
mov edx, dword [eax]
push edx
call fcn.0046afbc
add esp, 4
cmp ebx, edi
ja 0x40afb3
mov eax, dword [esi + 0x20]
cmp eax, edi
je 0x40afde
push eax
call fcn.0046afbc
add esp, 4
mov eax, dword [esi + 0x1c]
push eax
mov dword [esi + 0x24], edi
mov dword [esi + 0x20], edi
call fcn.0046afbc
mov dword [esi + 0x1c], edi
mov eax, dword [esi + 0x14]
add esp, 4
cmp eax, edi
je 0x40b012
lea ebx, [ebx]
cmp eax, edi
je 0x40b00d
dec eax
mov dword [esi + 0x14], eax
jne 0x40b00d
mov dword [esi + 0x10], edi
cmp dword [esi + 0x14], edi
jne 0x40b000
mov ebx, dword [esi + 0xc]
cmp ebx, edi
jbe 0x40b03b
lea esp, [esp]
mov ecx, dword [esi + 8]
dec ebx
cmp dword [ecx + ebx*4], edi
lea eax, [ecx + ebx*4]
je 0x40b037
mov edx, dword [eax]
push edx
call fcn.0046afbc
add esp, 4
cmp ebx, edi
ja 0x40b020
mov eax, dword [esi + 8]
cmp eax, edi
je 0x40b04b
push eax
call fcn.0046afbc
add esp, 4
mov eax, dword [esi + 4]
push eax
mov dword [esi + 0xc], edi
mov dword [esi + 8], edi
call fcn.0046afbc
add esp, 4
mov dword [esi + 4], edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret