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

Disassembly:
push 0xffffffffffffffff
push 0x59efbb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x54
push ebx
push ebp
mov ebp, ecx
xor ebx, ebx
push esi
push edi
mov eax, dword [ebp + 0x12c]
mov dword [esp + 0x14], ebp
cmp eax, ebx
je 0x4aed5f
cmp eax, 1
je 0x4aed5f
mov dword [esp + 0x10], ebx
mov dword [esp + 0x20], ebx
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0x20]
mov esi, dword [ebp + 0x130]
mov edx, dword [esp + 0x80]
add eax, ecx
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x7c], eax
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x84]
xor edi, edi
mov dword [esp + 0x40], eax
mov eax, dword [esi + 8]
cmp eax, ebx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x3c], edx
jle 0x4aeceb
mov ecx, dword [esi + 4]
mov ecx, dword [ecx + edi*4]
cmp ecx, ebx
je 0x4aece3
mov edx, dword [ecx]
push 1
call dword [edx + 8]
mov eax, dword [esi + 8]
inc edi
cmp edi, eax
jl 0x4aecd2
push 0xffffffffffffffff
push ebx
mov ecx, esi
call fcn.004d3e60
mov eax, dword [ebp + 0x90]
lea ecx, [ebp + 0x90]
call dword [eax + 0x30]
mov ecx, dword [eax + 0xe0]
lea eax, [esp + 0x54]
push eax
mov edx, dword [ecx]
call dword [edx + 0x14]
mov edx, eax
mov eax, dword [edx]
mov ecx, dword [edx + 4]
mov dword [esp + 0x48], ecx
mov ecx, dword [edx + 8]
mov edx, dword [edx + 0xc]
lea eax, [ecx + eax + 8]
lea ecx, [ebp + 0x3c]
mov dword [esp + 0x50], edx
mov dword [esp + 0x18], eax
call fcn.00558cb0
cmp eax, ebx
mov dword [esp + 0x28], eax
je 0x4aef76
lea ecx, [esp + 0x28]
push ecx
lea ecx, [ebp + 0x3c]
call fcn.00501c80
cmp eax, ebx
je 0x4aed96
add eax, 0xffffffc4
mov dword [esp + 0x1c], eax
jmp 0x4aed9a
mov eax, dword [ebp + 0x48]
mov dword [esp + 0x10], 1
mov eax, dword [eax + 0x64]
cmp eax, ebx
je 0x4aec8f
mov edx, dword [eax + 0x3c]
lea ecx, [eax + 0x3c]
call dword [edx + 0x14]
test eax, eax
jne 0x4aec8f
mov ecx, ebp
call fcn.004aec10
mov dword [esp + 0x20], eax
jmp 0x4aec93
mov dword [esp + 0x1c], ebx
mov edx, dword [esp + 0x1c]
mov eax, dword [edx + 0x3c]
lea ecx, [edx + 0x3c]
call dword [eax + 0x14]
test eax, eax
jne 0x4aef6c
mov esi, dword [ebp + 0x130]
push 0xac
call fcn.00576f33
mov edi, eax
add esp, 4
mov dword [esp + 0x30], edi
cmp edi, ebx
mov dword [esp + 0x6c], ebx
je 0x4aedfb
mov ecx, edi
call fcn.00469570
push ebx
mov ecx, edi
mov byte [esp + 0x70], 1
mov dword [edi], 0x4253bc
call fcn.00469990
push 1
mov ecx, edi
mov dword [eax + 8], ebx
call fcn.00469990
mov dword [eax + 8], ebx
jmp 0x4aedfd
xor edi, edi
mov eax, dword [esi + 8]
push edi
push eax
mov ecx, esi
mov dword [esp + 0x74], 0xffffffff
call fcn.004b01f0
mov ecx, dword [esp + 0x1c]
mov dword [edi + 0x98], esi
add ecx, 0x3c
call fcn.00558cb0
cmp eax, ebx
mov dword [esp + 0x24], eax
je 0x4aeed0
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x24]
push edx
lea ecx, [eax + 0x3c]
call fcn.00501c80
cmp eax, ebx
je 0x4aee49
lea esi, [eax - 0x1c]
jmp 0x4aee4b
xor esi, esi
mov eax, dword [edi + 0x5c]
push ebx
push eax
mov ecx, edi
call fcn.00469b40
mov ecx, dword [esp + 0x1c]
mov ebp, eax
mov dword [ebp + 0x3c], esi
mov eax, dword [ecx + 0x154]
cmp eax, esi
jne 0x4aee72
mov edx, dword [edi]
push ebp
mov ecx, edi
call dword [edx + 0x20]
mov eax, dword [esi]
lea ecx, [esp + 0x2c]
push ecx
mov ecx, esi
call dword [eax + 0x58]
mov eax, dword [eax]
mov ecx, ebp
push eax
mov dword [esp + 0x70], 2
call fcn.00468500
lea ecx, [esp + 0x2c]
mov dword [esp + 0x6c], 0xffffffff
call fcn.0057b019
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x64]
push eax
mov ecx, ebp
call fcn.004685b0
mov ecx, esi
call fcn.004727c0
and eax, 1
mov ecx, ebp
push eax
call fcn.00468690
cmp dword [esp + 0x24], ebx
jne 0x4aee2f
mov ebp, dword [esp + 0x14]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x30]
mov esi, dword [esp + 0x78]
sub esp, 0x10
mov ecx, esp
mov edx, dword [eax]
mov dword [ecx], esi
mov esi, dword [esp + 0x8c]
mov dword [ecx + 4], esi
mov esi, dword [esp + 0x90]
mov dword [ecx + 8], esi
mov esi, dword [esp + 0x94]
mov dword [ecx + 0xc], esi
mov ecx, dword [esp + 0x84]
push ecx
push edi
mov ecx, eax
call dword [edx + 0x58]
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x7c]
lea edx, [edi + 0x9c]
mov dword [edi + 0x9c], eax
mov eax, dword [esp + 0x80]
mov dword [edx + 4], ecx
mov dword [edx + 8], eax
mov eax, dword [esp + 0x10]
cmp eax, ebx
mov dword [edx + 0xc], esi
je 0x4aef55
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 0x2c]
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x7c]
add eax, edx
add ecx, eax
mov dword [esp + 0x7c], ecx
jmp 0x4aef6c
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x2c]
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x78]
add eax, edx
add ecx, eax
mov dword [esp + 0x78], ecx
cmp dword [esp + 0x28], ebx
jne 0x4aed45
lea ecx, [ebp + 0x3c]
call fcn.004b08d0
cmp dword [eax + 0x74], ebx
je 0x4af20c
cmp dword [esp + 0x10], ebx
jne 0x4aef97
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x34]
jmp 0x4aef9f
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0x38]
mov esi, dword [esp + 0x18]
sub eax, ecx
sub eax, esi
push ebx
mov dword [ebp + 0x148], eax
add ebp, 0x90
mov ecx, ebp
call fcn.00469990
push 1
mov ecx, ebp
mov esi, eax
call fcn.00469990
mov edi, eax
mov eax, dword [esp + 0x10]
cmp eax, ebx
jne 0x4aefe8
mov edx, dword [esp + 0x80]
mov eax, dword [esp + 0x78]
xor ecx, ecx
cmp eax, edx
setg cl
mov dword [esp + 0x1c], ecx
jmp 0x4aeffe
mov ecx, dword [esp + 0x84]
mov edx, dword [esp + 0x7c]
xor eax, eax
cmp edx, ecx
setg al
mov dword [esp + 0x1c], eax
cmp dword [esp + 0x1c], ebx
je 0x4af050
mov eax, 2
mov ecx, dword [esp + 0x34]
mov dword [esi + 8], eax
mov dword [edi + 8], eax
mov eax, dword [esp + 0x14]
neg eax
sbb eax, eax
sub esp, 0x10
mov edx, esp
and eax, ebp
push eax
mov eax, dword [ebp]
mov dword [edx], ecx
mov ecx, dword [esp + 0x4c]
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x50]
mov dword [edx + 8], ecx
mov ecx, dword [esp + 0x54]
mov dword [edx + 0xc], ecx
lea edx, [esp + 0x68]
push edx
mov ecx, ebp
call dword [eax + 0x30]
mov ecx, eax
call fcn.0046e3c0
jmp 0x4af09e
mov dword [esi + 8], ebx
sub esp, 0x10
mov dword [edi + 8], ebx
mov ebx, esp
xor eax, eax
xor ecx, ecx
mov dword [ebx], eax
xor edx, edx
xor ebp, ebp
mov dword [ebx + 4], ecx
mov ecx, esi
mov dword [ebx + 8], edx
mov dword [ebx + 0xc], ebp
call fcn.00468bf0
sub esp, 0x10
xor eax, eax
mov ebx, esp
xor ecx, ecx
xor edx, edx
xor esi, esi
mov dword [ebx], eax
mov dword [ebx + 4], ecx
mov ecx, edi
mov dword [ebx + 8], edx
mov dword [ebx + 0xc], esi
call fcn.00468bf0
mov ecx, dword [esp + 0x14]
mov dword [ecx + 0xa4], esi
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x34]
mov ebx, dword [esp + 0x38]
mov edi, dword [esp + 0x3c]
mov ebp, dword [esp + 0x40]
mov dword [esp + 0x78], edx
test eax, eax
mov dword [esp + 0x7c], ebx
je 0x4af20c
mov edx, dword [esp + 0x14]
mov esi, dword [edx + 0xa4]
test esi, esi
jge 0x4af11e
mov eax, dword [esp + 0x10]
test eax, eax
mov eax, ebp
jne 0x4af0dc
mov eax, edi
mov ecx, dword [edx + 0x148]
mov edx, eax
sub edx, dword [esp + 0x18]
add esi, ecx
sub edx, dword [esp + 0x20]
sub edx, 0x18
cmp esi, edx
jge 0x4af11a
mov esi, dword [esp + 0x20]
sub eax, ecx
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
sub eax, ecx
xor ecx, ecx
sub eax, esi
add eax, 0xffffffe8
test eax, eax
setg cl
dec ecx
and eax, ecx
mov dword [edx + 0xa4], eax
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4af138
mov ebx, dword [edx + 0xa4]
mov eax, dword [esp + 0x38]
add ebx, eax
mov dword [esp + 0x7c], ebx
jmp 0x4af148
mov eax, dword [edx + 0xa4]
mov ecx, dword [esp + 0x34]
add eax, ecx
mov dword [esp + 0x78], eax
mov eax, dword [edx + 0x130]
xor ecx, ecx
mov dword [esp + 0x24], ecx
mov edx, dword [eax + 8]
test edx, edx
jle 0x4af20c
mov eax, dword [eax + 4]
mov esi, dword [eax + ecx*4]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4af180
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x2c]
mov ecx, dword [esp + 0x18]
mov ebp, eax
add ebp, ecx
add ebp, ebx
jmp 0x4af195
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x2c]
mov ecx, dword [esp + 0x78]
mov edi, eax
mov eax, dword [esp + 0x18]
add edi, ecx
add edi, eax
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x30]
mov ebx, dword [esp + 0x78]
sub esp, 0x10
mov ecx, esp
mov edx, dword [eax]
mov dword [ecx], ebx
mov ebx, dword [esp + 0x8c]
mov dword [ecx + 4], ebx
mov dword [ecx + 8], edi
mov dword [ecx + 0xc], ebp
mov ecx, dword [esp + 0x84]
push ecx
push esi
mov ecx, eax
call dword [edx + 0x58]
mov edx, dword [esp + 0x78]
add esi, 0x9c
mov eax, dword [esp + 0x10]
mov dword [esi], edx
test eax, eax
mov dword [esi + 4], ebx
mov dword [esi + 8], edi
mov dword [esi + 0xc], ebp
je 0x4af1ec
mov ebx, ebp
mov dword [esp + 0x7c], ebx
jmp 0x4af1f0
mov dword [esp + 0x78], edi
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x24]
inc ecx
mov eax, dword [eax + 0x130]
mov dword [esp + 0x24], ecx
cmp ecx, dword [eax + 8]
jl 0x4af15f
mov ecx, dword [esp + 0x64]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x60
ret 0x14