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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x4ae77c
sub esp, 0x58
mov eax, dword [esp + 0x64]
test eax, 0x200
jne 0x4ae67f
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x5c]
mov dword [esp + 0x34], eax
mov dword [esp + 0x48], ecx
mov dword [esp + 0x44], edx
mov ebx, dword [esp + 0x70]
mov dword [esp], ebx
mov dword [esp + 4], edx
call fcn.004a54e0
movzx eax, byte [esp + 8]
test al, al
je 0x4ae524
mov eax, dword [esp + 0x34]
test eax, 0x60
je 0x4ae520
mov ecx, 0x20
mov edx, dword [esp + 0x70]
movzx ebx, byte [edx + 0xf]
mov dword [esp + 0x78], edx
mov edx, dword [esp + 0x48]
mov dword [esp + 0x7c], edx
and eax, 0x180
or ecx, eax
and ebx, 0x1f
or ebx, ecx
mov dword [esp + 0x80], ebx
add esp, 0x58
ret
xor ecx, ecx
jmp 0x4ae4f5
mov eax, dword [esp + 0x70]
mov dword [esp], eax
mov ecx, dword [esp + 0x44]
mov dword [esp + 4], ecx
call fcn.004a4e10
movzx eax, byte [esp + 8]
test al, al
je 0x4ae6b8
mov eax, dword [esp + 0x74]
test eax, eax
je 0x4ae66a
mov dword [esp + 0x74], eax
mov ecx, dword [esp + 0x34]
mov edx, ecx
and ecx, 0x1f
cmp ecx, 0x14
je 0x4ae621
mov eax, dword [esp + 0x44]
mov dword [esp], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 4], eax
mov dword [esp + 8], edx
mov byte [esp + 0xc], 0
call fcn.004aaea0
mov eax, dword [esp + 0x14]
mov dword [esp + 0x40], eax
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x3c], ecx
mov edx, dword [esp + 0x70]
mov dword [esp], edx
call fcn.004a1f10
mov eax, dword [esp + 4]
test eax, eax
jne 0x4ae5f7
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x74]
mov dword [ecx], eax
mov eax, dword [0xcc2260]
lea edx, [ecx + 4]
test eax, eax
jne 0x4ae5e1
mov eax, dword [esp + 0x40]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x70]
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x80], 0x94
add esp, 0x58
ret
mov dword [esp], edx
mov eax, dword [esp + 0x40]
mov dword [esp + 4], eax
call fcn.0040f360
mov ecx, dword [esp + 0x74]
jmp 0x4ae5c6
mov eax, dword [esp + 0x70]
mov dword [esp], eax
mov ecx, dword [esp + 0x3c]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x40]
mov dword [esp + 8], ecx
mov ecx, dword [esp + 0x74]
mov dword [esp + 0xc], ecx
call fcn.0040cb80
mov ecx, dword [esp + 0x74]
jmp 0x4ae5c6
mov eax, dword [esp + 0x44]
mov dword [esp], eax
mov ecx, dword [esp + 0x48]
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
call fcn.004ab090
movzx eax, byte [esp + 0xc]
test al, al
jne 0x4ae64b
mov edx, dword [esp + 0x34]
jmp 0x4ae567
mov eax, dword [esp + 0x70]
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0x14
add esp, 0x58
ret
mov eax, dword [esp + 0x70]
mov dword [esp], eax
call fcn.0040eb30
mov eax, dword [esp + 4]
jmp 0x4ae551
mov ecx, dword [esp + 0x68]
mov dword [esp], ecx
mov edx, dword [esp + 0x6c]
mov dword [esp + 4], edx
mov ebx, dword [esp + 0x5c]
mov dword [esp + 8], ebx
mov ebx, dword [esp + 0x60]
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], eax
call fcn.004a0ae0
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
jmp 0x4ae4c0
mov eax, dword [esp + 0x44]
mov dword [esp], eax
call fcn.004a1960
mov eax, dword [esp + 8]
mov dword [esp + 0x38], eax
mov ecx, dword [esp + 4]
mov dword [esp + 0x4c], ecx
mov edx, dword [esp + 0x70]
mov dword [esp], edx
call fcn.004a1960
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
mov dword [esp], 0
mov edx, dword [esp + 0x68]
mov dword [esp + 4], edx
mov edx, dword [esp + 0x6c]
mov dword [esp + 8], edx
lea edx, [0x84db3c]
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], 0x10
mov edx, dword [esp + 0x4c]
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x38]
mov dword [esp + 0x18], edx
lea edx, [0x855bf3]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], 0x1b
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], eax
call fcn.0043d000
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], ecx
lea eax, [0x7cfea0]
mov dword [esp], eax
lea eax, [esp + 0x50]
mov dword [esp + 4], eax
call fcn.0040c380
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.004278c0
ud2
call fcn.0044c200
jmp fcn.004ae490