Function at 0x40abb0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 0xc]
jbe 0x40ae75
sub esp, 0x2c
mov eax, dword [esp + 0x30]
test eax, eax
je 0x40ae5e
mov ecx, dword [esp + 0x34]
test ecx, ecx
je 0x40adf8
lea edx, [ecx - 1]
test ecx, edx
jne 0x40ae48
cmp ecx, 0x2000
ja 0x40ae32
cmp eax, 0x10000
jae 0x40add8
mov dword [esp + 0x10], ecx
mov edx, dword fs:[0x14]
mov edx, dword [edx]
mov ebx, dword [edx + 0x18]
nop
inc dword [ebx + 0x78]
mov edx, dword [edx + 0x18]
mov dword [esp + 0x20], edx
test edx, edx
je 0x40adb1
mov ebx, dword [edx + 0x54]
test ebx, ebx
je 0x40adb1
test byte [ebx], al
add ebx, 0xb4c
mov dword [esp + 0x1c], ebx
mov ebp, dword [ebx + 4]
lea ebp, [ecx + ebp - 1]
neg ecx
mov dword [esp + 0x18], ecx
and ebp, ecx
mov dword [ebx + 4], ebp
add ebp, eax
cmp ebp, 0x40000
jbe 0x40ada0
mov dword [esp], 0x40000
lea eax, [0xf2d7a0]
mov dword [esp + 4], eax
call fcn.00411bb0
mov eax, dword [esp + 8]
mov dword [esp + 0x28], eax
mov ecx, dword [esp + 0x1c]
mov dword [ecx], eax
mov eax, dword [ecx]
test eax, eax
jne 0x40ac94
jmp 0x40ae02
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx]
mov edx, dword [0xf2bdcc]
mov dword [eax], edx
mov eax, dword [ecx]
mov dword [esp + 0x28], eax
lea ebx, [0xf2bdcc]
mov dword [esp], ebx
mov dword [esp + 4], edx
mov dword [esp + 8], eax
call fcn.00401fe0
movzx eax, byte [esp + 0xc]
test al, al
je 0x40ac90
mov eax, dword [esp + 0x10]
add eax, 3
mov ecx, dword [esp + 0x18]
and eax, ecx
mov ecx, dword [esp + 0x1c]
mov dword [ecx + 4], eax
mov eax, dword [ecx]
mov edx, dword [ecx + 4]
mov ebx, dword [esp + 0x30]
lea ebp, [ebx + edx]
mov dword [ecx + 4], ebp
nop
mov ebp, dword fs:[0x14]
mov ebp, dword [ebp]
mov esi, dword [esp + 0x20]
mov edi, dword [esi + 0x78]
lea ebx, [edi - 1]
mov dword [esi + 0x78], ebx
add eax, edx
cmp edi, 1
jne 0x40ad17
movzx edx, byte [ebp + 0x65]
test dl, dl
je 0x40ad17
mov dword [ebp + 8], 0xfffffade
mov dword [esp + 0x24], eax
lea edx, [0xf2bebc]
cmp ecx, edx
je 0x40ad8b
mov ecx, dword [esp + 0x38]
lea edx, [0xf2d7a0]
cmp ecx, edx
jne 0x40ad3b
mov dword [esp + 0x3c], eax
add esp, 0x2c
ret
xor eax, eax
mov edx, dword [esp + 0x30]
sub eax, edx
mov dword [esp + 0x14], eax
mov dword [esp], ecx
mov dword [esp + 8], 0
mov dword [esp + 4], edx
call fcn.00428f40
lea eax, [0xf2d7a0]
mov dword [esp], eax
xor eax, eax
mov ecx, dword [esp + 0x30]
sub eax, ecx
mov eax, 0
sbb eax, 0
mov dword [esp + 8], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 4], eax
call fcn.00428f40
mov eax, dword [esp + 0x24]
jmp 0x40ad33
nop
lea eax, [0xf2beb8]
mov dword [esp], eax
call fcn.00408930
mov eax, dword [esp + 0x24]
jmp 0x40ad25
mov ebp, dword [ebx]
test ebp, ebp
je 0x40ac61
mov ecx, ebx
jmp 0x40acd7
nop
nop
lea eax, [0xf2beb8]
mov dword [esp], eax
call fcn.00408720
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x20]
lea ebx, [0xf2bebc]
jmp 0x40ac3d
mov dword [esp], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 4], eax
call fcn.00411bb0
mov eax, dword [esp + 8]
mov dword [esp + 0x28], eax
mov dword [esp + 0x3c], eax
add esp, 0x2c
ret
mov ecx, 8
jmp 0x40abf8
lea eax, [0xf2bebc]
cmp ecx, eax
jne 0x40ae1c
nop
nop
lea eax, [0xf2beb8]
mov dword [esp], eax
call fcn.00408930
lea eax, [0x4ab7e2]
mov dword [esp], eax
mov dword [esp + 4], 0x1f
call fcn.0042f490
lea eax, [0x4ac22c]
mov dword [esp], eax
mov dword [esp + 4], 0x23
call fcn.0042f490
lea eax, [0x4acd59]
mov dword [esp], eax
mov dword [esp + 4], 0x2a
call fcn.0042f490
lea eax, [0x4aa6fc]
mov dword [esp], eax
mov dword [esp + 4], 0x1a
call fcn.0042f490
nop
call fcn.004557c0
jmp fcn.0040abb0