Function at 0x40be10
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x488bae
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push esi
push edi
mov eax, dword [0x59339c]
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.0040bbd0
mov ebx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x38]
sub ebx, eax
sar ebx, 2
cmp ebx, edi
je 0x40bebc
mov edx, dword [esi + 0x38]
push edx
push 1
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
test ebx, ebx
je 0x40beba
jmp 0x40be90
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 0x40beb5
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 0x40be90
xor edi, edi
cmp dword [esi + 0x14], 0
jbe 0x40bf15
push edi
lea ecx, [ebp - 0x1c]
push ecx
lea edx, [ebp - 0x28]
push edx
lea ecx, [esi + 4]
call fcn.004021d0
mov ecx, eax
call fcn.00409670
mov ecx, dword [eax]
test ecx, ecx
jne 0x40bee4
xor ebx, ebx
jmp 0x40bee6
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 0x40befa
sub eax, edx
mov edx, dword [ebx + 4]
mov eax, dword [edx + eax*4]
mov ecx, dword [eax + ecx*4]
test ecx, ecx
je 0x40bf0f
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
inc edi
cmp edi, dword [esi + 0x14]
jb 0x40bec2
xor edi, edi
cmp dword [esi + 0x2c], edi
jbe 0x40bf6f
push edi
lea ecx, [ebp - 0x28]
push ecx
lea edx, [ebp - 0x1c]
push edx
lea ecx, [esi + 0x1c]
call fcn.004021d0
mov ecx, eax
call fcn.00409670
mov ecx, dword [eax]
test ecx, ecx
jne 0x40bf3e
xor ebx, ebx
jmp 0x40bf40
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 0x40bf54
sub eax, edx
mov edx, dword [ebx + 4]
mov eax, dword [edx + eax*4]
mov ecx, dword [eax + ecx*4]
test ecx, ecx
je 0x40bf69
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
inc edi
cmp edi, dword [esi + 0x2c]
jb 0x40bf1c
mov eax, dword [ebp - 0x38]
xor edi, edi
cmp eax, edi
je 0x40bf81
push eax
call fcn.0046bfbc
add esp, 4
mov eax, dword [esi + 0x2c]
cmp eax, edi
je 0x40bf9a
cmp eax, edi
je 0x40bf95
dec eax
mov dword [esi + 0x2c], eax
jne 0x40bf95
mov dword [esi + 0x28], edi
cmp dword [esi + 0x2c], edi
jne 0x40bf88
mov ebx, dword [esi + 0x24]
xor edi, edi
cmp ebx, edi
jbe 0x40bfbe
mov ecx, dword [esi + 0x20]
dec ebx
cmp dword [ecx + ebx*4], edi
lea eax, [ecx + ebx*4]
je 0x40bfba
mov edx, dword [eax]
push edx
call fcn.0046bfbc
add esp, 4
cmp ebx, edi
ja 0x40bfa3
mov eax, dword [esi + 0x20]
cmp eax, edi
je 0x40bfce
push eax
call fcn.0046bfbc
add esp, 4
mov eax, dword [esi + 0x1c]
push eax
mov dword [esi + 0x24], edi
mov dword [esi + 0x20], edi
call fcn.0046bfbc
mov dword [esi + 0x1c], edi
mov eax, dword [esi + 0x14]
add esp, 4
cmp eax, edi
je 0x40c002
lea ebx, [ebx]
cmp eax, edi
je 0x40bffd
dec eax
mov dword [esi + 0x14], eax
jne 0x40bffd
mov dword [esi + 0x10], edi
cmp dword [esi + 0x14], edi
jne 0x40bff0
mov ebx, dword [esi + 0xc]
cmp ebx, edi
jbe 0x40c02b
lea esp, [esp]
mov ecx, dword [esi + 8]
dec ebx
cmp dword [ecx + ebx*4], edi
lea eax, [ecx + ebx*4]
je 0x40c027
mov edx, dword [eax]
push edx
call fcn.0046bfbc
add esp, 4
cmp ebx, edi
ja 0x40c010
mov eax, dword [esi + 8]
cmp eax, edi
je 0x40c03b
push eax
call fcn.0046bfbc
add esp, 4
mov eax, dword [esi + 4]
push eax
mov dword [esi + 0xc], edi
mov dword [esi + 8], edi
call fcn.0046bfbc
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