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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
lea eax, [esp - 0xb8]
cmp eax, dword [ecx + 8]
jbe 0x4ab851
sub esp, 0x138
mov eax, dword [esp + 0x144]
test eax, eax
jle 0x4ab812
mov ecx, dword [esp + 0x150]
test ecx, ecx
jle 0x4ab7fd
lea edx, [eax - 1]
cmp edx, eax
jae 0x4ab84a
mov edx, dword [esp + 0x13c]
lea ebx, [edx + eax*4 - 4]
lea ebp, [ecx - 1]
cmp ebp, ecx
jae 0x4ab84a
mov ebp, dword [esp + 0x148]
lea esi, [ebp + ecx*4 - 4]
cmp esi, ebx
sete bl
test bl, bl
je 0x4ab793
xor eax, eax
xor edx, edx
xor ebx, ebx
mov esi, dword [esp + 0x164]
cmp esi, 1
jne 0x4aacde
mov edi, dword [esp + 0x160]
mov edi, dword [edi]
cmp edi, 1
je 0x4ab773
mov edi, dword [esp + 0x158]
test edi, edi
je 0x4ab713
cmp edi, 1
jne 0x4aad08
mov edi, dword [esp + 0x154]
mov edi, dword [edi]
cmp edi, 1
jne 0x4aad08
test esi, esi
jne 0x4ab6a2
test esi, esi
je 0x4aad14
cmp esi, ebx
jg 0x4ab667
mov eax, dword [esp + 0x14c]
cmp eax, ebx
jg 0x4ab621
mov edi, eax
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x48], eax
cmp eax, edi
jle 0x4ab61a
mov dword [esp + 0x134], edx
mov dword [esp], edx
mov dword [esp + 4], ebp
shl edi, 2
mov dword [esp + 8], edi
call fcn.00448cd0
mov eax, dword [esp + 0x148]
mov dword [esp], eax
mov ecx, dword [esp + 0x14c]
mov dword [esp + 4], ecx
mov edx, dword [esp + 0x150]
mov dword [esp + 8], edx
mov ebx, dword [0x789664]
mov ebp, dword [0x789660]
mov esi, dword [0x789668]
mov dword [esp + 0xc], ebp
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], esi
call fcn.004a7a20
mov eax, dword [esp + 0x18]
test eax, eax
jle 0x4ab607
mov eax, dword [esp + 0x158]
cmp eax, 1
jle 0x4ab5fb
mov ecx, dword [esp + 0x164]
test ecx, ecx
jg 0x4ab4bc
lea edx, [eax - 1]
cmp edx, eax
jae 0x4ab835
mov ecx, dword [esp + 0x154]
mov edx, dword [ecx + eax*4 - 4]
mov dword [esp + 0x5c], edx
mov dword [esp], edx
call fcn.004a0e10
mov eax, dword [esp + 4]
lea ecx, [eax + 1]
mov edx, dword [esp + 0x5c]
shl edx, cl
cmp ecx, 0x20
sbb ecx, ecx
and edx, ecx
add eax, 0xffffffe1
neg eax
mov dword [esp + 0x58], eax
xor ecx, ecx
mov ebx, dword [esp + 0x4c]
mov ebp, dword [esp + 0x48]
mov esi, dword [esp + 0x134]
xor edi, edi
xor ebx, ebx
mov dword [esp + 0x50], ebx
xor ebp, ebp
mov dword [esp + 0x54], ebp
xor esi, esi
mov dword [esp + 0x64], esi
mov dword [esp + 0x10c], eax
xor eax, eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x104], edx
xor edx, edx
mov dword [esp + 0xb0], edx
xor ecx, ecx
mov dword [esp + 0xac], ecx
xor edi, edi
mov dword [esp + 0x130], edi
mov ebx, dword [esp + 0x4c]
mov ebp, dword [esp + 0x48]
mov esi, dword [esp + 0x134]
mov eax, dword [esp + 0x10c]
mov edx, dword [esp + 0x104]
xor ecx, ecx
xor edi, edi
mov dword [esp + 0xfc], eax
xor eax, eax
mov dword [esp + 0x134], eax
mov eax, dword [esp + 0x10c]
jmp 0x4aaee5
mov ebp, dword [esp + 0x74]
inc ebp
shl ebx, 1
mov dword [esp + 0x50], esi
mov dword [esp + 0x54], edi
mov dword [esp + 0xf4], eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 0xb0], eax
mov dword [esp + 0xec], ecx
mov ecx, dword [esp + 0x68]
mov dword [esp + 0xac], ecx
mov eax, dword [esp + 0x58]
mov ecx, ebp
mov ebp, dword [esp + 0xec]
mov esi, dword [esp + 0xf4]
mov edi, dword [esp + 0x128]
mov ebp, edx
mov edx, ebx
mov ebx, ebp
mov ebp, dword [esp + 0xec]
cmp ecx, eax
jge 0x4ab145
mov dword [esp + 0xa8], ebx
mov dword [esp + 0xa4], ebp
mov dword [esp + 0x12c], esi
mov dword [esp + 0x74], ecx
mov dword [esp + 0x5c], edx
mov dword [esp], edi
mov eax, dword [esp + 0x50]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 8], eax
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], ebx
call fcn.004a94b0
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov ebx, dword [esp + 0x5c]
test ebx, 0x80000000
jne 0x4ab0a0
mov ebp, dword [esp + 0x164]
test ebp, ebp
mov esi, dword [esp + 0xa4]
mov edi, dword [esp + 0xa8]
mov esi, dword [esp + 0x12c]
mov dword [esp + 0x128], esi
mov esi, dword [esp + 0xa4]
jne 0x4aafaf
mov dword [esp + 0xe4], eax
mov eax, dword [esp + 0xb0]
mov dword [esp + 0x6c], eax
mov dword [esp + 0xdc], ecx
mov ecx, dword [esp + 0xac]
mov dword [esp + 0x68], ecx
mov eax, dword [esp + 0xe4]
mov ecx, dword [esp + 0xdc]
jmp 0x4aae8a
mov dword [esp + 0x124], eax
mov dword [esp + 0xa0], ecx
mov dword [esp + 0x9c], edx
mov ebx, dword [esp + 0x128]
mov dword [esp], ebx
mov dword [esp + 4], esi
mov dword [esp + 8], edi
mov ebx, dword [esp + 0x134]
mov dword [esp + 0xc], ebx
mov ebx, dword [esp + 0x60]
mov dword [esp + 0x10], ebx
mov ebx, dword [esp + 0x64]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], edx
mov ebx, dword [esp + 0x160]
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebp
mov esi, dword [esp + 0x168]
mov dword [esp + 0x2c], esi
call fcn.004a9990
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
mov ebx, dword [esp + 0x3c]
mov ebp, dword [esp + 0x40]
mov esi, dword [esp + 0x44]
mov edi, dword [esp + 0x130]
mov dword [esp + 0x128], edi
mov edi, dword [esp + 0xb0]
mov edi, dword [esp + 0x9c]
mov dword [esp + 0x64], edi
mov edi, dword [esp + 0xa0]
mov dword [esp + 0x60], edi
mov edi, dword [esp + 0x124]
mov dword [esp + 0x134], edi
mov dword [esp + 0x6c], edx
mov dword [esp + 0x68], ecx
mov dword [esp + 0x130], eax
mov ecx, ebp
mov eax, ebx
mov edx, esi
mov edi, dword [esp + 0xb0]
mov ebx, dword [esp + 0x5c]
mov ebp, dword [esp + 0x164]
mov esi, dword [esp + 0xac]
jmp 0x4aae8a
mov dword [esp + 0x114], eax
mov dword [esp + 0x98], ecx
mov dword [esp + 0x94], edx
mov ebx, dword [esp + 0x12c]
mov dword [esp], ebx
mov ebx, dword [esp + 0xa4]
mov dword [esp + 4], ebx
mov ebx, dword [esp + 0xa8]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
mov ebx, dword [esp + 0x148]
mov dword [esp + 0x18], ebx
mov ebp, dword [esp + 0x14c]
mov dword [esp + 0x1c], ebp
mov esi, dword [esp + 0x150]
mov dword [esp + 0x20], esi
call fcn.004a8a00
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
mov ebp, dword [esp + 0x164]
test ebp, ebp
mov ebx, dword [esp + 0x5c]
mov esi, dword [esp + 0x98]
mov edi, dword [esp + 0x94]
mov ebx, dword [esp + 0x114]
mov dword [esp + 0x128], ebx
mov ebx, dword [esp + 0x5c]
jmp 0x4aaf76
mov eax, dword [esp + 0x158]
lea ecx, [eax - 2]
mov edx, dword [esp + 0x54]
mov edx, dword [esp + 0xb0]
mov dword [esp + 0x6c], edx
mov edx, dword [esp + 0xac]
mov dword [esp + 0x68], edx
mov edx, dword [esp + 0x54]
jmp 0x4ab422
mov ebp, dword [esp + 0x70]
inc ebp
shl ebx, 1
mov dword [esp + 0x70], ebp
mov ebp, ecx
mov dword [esp + 0x50], edi
mov edi, dword [esp + 0x12c]
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x54], ecx
mov ecx, dword [esp + 0x68]
mov dword [esp + 0xb0], ecx
mov ecx, dword [esp + 0x78]
mov ecx, ebx
mov ebx, edx
mov edx, esi
mov esi, eax
mov eax, ecx
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x70]
cmp eax, 0x20
jge 0x4ab400
mov dword [esp + 0x90], ebx
mov dword [esp + 0x120], esi
mov dword [esp + 0x8c], ebp
mov dword [esp], edi
mov eax, dword [esp + 0x50]
mov dword [esp + 4], eax
mov dword [esp + 8], edx
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], ebx
call fcn.004a94b0
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov ebx, dword [esp + 0x5c]
test ebx, 0x80000000
jne 0x4ab361
mov ebp, dword [esp + 0x164]
test ebp, ebp
mov esi, dword [esp + 0x90]
mov edi, dword [esp + 0x8c]
mov esi, dword [esp + 0x120]
mov dword [esp + 0x12c], esi
mov esi, dword [esp + 0x90]
jne 0x4ab273
mov dword [esp + 0xbc], eax
mov eax, dword [esp + 0xb0]
mov dword [esp + 0x68], eax
mov dword [esp + 0xb4], ecx
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x6c], ecx
mov eax, dword [esp + 0xbc]
mov ecx, dword [esp + 0xb4]
jmp 0x4ab172
mov dword [esp + 0x88], ecx
mov dword [esp + 0x84], edx
mov dword [esp + 0x11c], eax
mov ebx, dword [esp + 0x12c]
mov dword [esp], ebx
mov dword [esp + 4], edi
mov dword [esp + 8], esi
mov ebx, dword [esp + 0x134]
mov dword [esp + 0xc], ebx
mov ebx, dword [esp + 0x60]
mov dword [esp + 0x10], ebx
mov ebx, dword [esp + 0x64]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], edx
mov ebx, dword [esp + 0x160]
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebp
mov esi, dword [esp + 0x168]
mov dword [esp + 0x2c], esi
call fcn.004a9990
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
mov ebx, dword [esp + 0x3c]
mov ebp, dword [esp + 0x40]
mov esi, dword [esp + 0x44]
mov edi, dword [esp + 0xb0]
mov edi, dword [esp + 0x130]
mov dword [esp + 0x12c], edi
mov edi, dword [esp + 0x84]
mov dword [esp + 0x64], edi
mov edi, dword [esp + 0x88]
mov dword [esp + 0x60], edi
mov edi, dword [esp + 0x11c]
mov dword [esp + 0x134], edi
mov dword [esp + 0x68], ecx
mov dword [esp + 0x6c], edx
mov dword [esp + 0x130], eax
mov edx, esi
mov ecx, ebp
mov eax, ebx
mov edi, dword [esp + 0xb0]
mov ebx, dword [esp + 0x5c]
mov ebp, dword [esp + 0x164]
mov esi, dword [esp + 0x54]
jmp 0x4ab172
mov dword [esp + 0x118], eax
mov dword [esp + 0x80], ecx
mov dword [esp + 0x7c], edx
mov ebx, dword [esp + 0x120]
mov dword [esp], ebx
mov ebx, dword [esp + 0x8c]
mov dword [esp + 4], ebx
mov ebx, dword [esp + 0x90]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
mov ebx, dword [esp + 0x148]
mov dword [esp + 0x18], ebx
mov ebp, dword [esp + 0x14c]
mov dword [esp + 0x1c], ebp
mov esi, dword [esp + 0x150]
mov dword [esp + 0x20], esi
call fcn.004a8a00
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
mov ebp, dword [esp + 0x164]
test ebp, ebp
mov ebx, dword [esp + 0x5c]
mov esi, dword [esp + 0x7c]
mov edi, dword [esp + 0x80]
mov ebx, dword [esp + 0x118]
mov dword [esp + 0x12c], ebx
mov ebx, dword [esp + 0x5c]
jmp 0x4ab23d
dec ecx
mov eax, dword [esp + 0x158]
mov eax, dword [esp + 0x54]
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0xb0]
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x158]
test ecx, ecx
jl 0x4ab484
cmp ecx, eax
jae 0x4ab82e
mov dword [esp + 0x78], ecx
mov eax, dword [esp + 0x154]
mov eax, dword [eax + ecx*4]
mov dword [esp + 0xd4], eax
xor eax, eax
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0xd4]
mov dword [esp + 0xcc], eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x54], eax
mov dword [esp + 0xc4], ecx
mov ecx, dword [esp + 0x68]
mov dword [esp + 0xb0], ecx
mov eax, dword [esp + 0xd4]
mov ecx, dword [esp + 0xc4]
jmp 0x4ab1af
mov dword [esp], esi
mov dword [esp + 4], ebp
mov dword [esp + 8], ebx
call fcn.004a7380
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov dword [esp + 0x16c], eax
mov dword [esp + 0x170], ecx
mov dword [esp + 0x174], edx
add esp, 0x138
ret
mov edx, dword [esp + 0x160]
mov ebx, dword [edx]
and ebx, 1
cmp ebx, 1
jne 0x4ab566
mov ebx, dword [esp + 0x134]
mov dword [esp], ebx
mov ebx, dword [esp + 0x48]
mov dword [esp + 4], ebx
mov ebx, dword [esp + 0x4c]
mov dword [esp + 8], ebx
mov ebx, dword [esp + 0x148]
mov dword [esp + 0xc], ebx
mov ebx, dword [esp + 0x14c]
mov dword [esp + 0x10], ebx
mov ebx, dword [esp + 0x150]
mov dword [esp + 0x14], ebx
mov ebx, dword [esp + 0x154]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x15c]
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], ecx
mov eax, dword [esp + 0x168]
mov dword [esp + 0x2c], eax
call fcn.004ac210
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
mov dword [esp + 0x16c], eax
mov dword [esp + 0x170], ecx
mov dword [esp + 0x174], edx
add esp, 0x138
ret
mov ebx, dword [esp + 0x134]
mov dword [esp], ebx
mov ebx, dword [esp + 0x48]
mov dword [esp + 4], ebx
mov ebx, dword [esp + 0x4c]
mov dword [esp + 8], ebx
mov ebx, dword [esp + 0x148]
mov dword [esp + 0xc], ebx
mov ebx, dword [esp + 0x14c]
mov dword [esp + 0x10], ebx
mov ebx, dword [esp + 0x150]
mov dword [esp + 0x14], ebx
mov ebx, dword [esp + 0x154]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x15c]
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], ecx
mov eax, dword [esp + 0x168]
mov dword [esp + 0x2c], eax
call fcn.004ab860
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
mov dword [esp + 0x16c], eax
mov dword [esp + 0x170], ecx
mov dword [esp + 0x174], edx
add esp, 0x138
ret
mov ecx, dword [esp + 0x164]
jmp 0x4aadbd
mov eax, dword [esp + 0x158]
mov ecx, dword [esp + 0x164]
jmp 0x4aadbd
mov edi, eax
jmp 0x4aad35
lea ecx, [0x5cd2a0]
mov dword [esp], ecx
mov dword [esp + 4], eax
lea ecx, [eax + 4]
mov dword [esp + 8], ecx
call fcn.00434f20
mov ebx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 0x150]
mov ebp, dword [esp + 0x148]
mov esi, dword [esp + 0x164]
mov edi, dword [esp + 0x14c]
jmp 0x4aad25
lea eax, [0x5cd2a0]
mov dword [esp], eax
mov dword [esp + 4], esi
lea ecx, [esi + 4]
mov dword [esp + 8], ecx
call fcn.00434f20
mov ebx, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 0x150]
mov ebp, dword [esp + 0x148]
mov esi, dword [esp + 0x164]
jmp 0x4aad14
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], ebx
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebp
mov eax, dword [esp + 0x14c]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
mov eax, dword [esp + 0x160]
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], esi
mov eax, dword [esp + 0x168]
mov dword [esp + 0x2c], eax
call fcn.004a9990
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x16c], edx
mov dword [esp + 0x170], ecx
mov dword [esp + 0x174], eax
add esp, 0x138
ret
cmp ebx, 1
jl 0x4ab747
mov eax, 1
test eax, eax
jbe 0x4ab83c
mov dword [edx], 1
mov dword [esp + 0x16c], edx
mov dword [esp + 0x170], eax
mov dword [esp + 0x174], ebx
add esp, 0x138
ret
lea eax, [0x5cd2a0]
mov dword [esp], eax
mov dword [esp + 4], 1
mov dword [esp + 8], 5
call fcn.00434f20
mov ebx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
jmp 0x4ab71d
mov dword [esp + 0x16c], edx
mov dword [esp + 0x170], 0
mov dword [esp + 0x174], ebx
add esp, 0x138
ret
test eax, eax
jle 0x4ab7f2
mov ebx, dword [esp + 0x15c]
test ebx, ebx
jle 0x4ab7e7
lea esi, [eax - 1]
cmp esi, eax
jae 0x4ab843
lea esi, [edx + eax*4 - 4]
lea edi, [ebx - 1]
cmp edi, ebx
jae 0x4ab843
mov edi, dword [esp + 0x154]
lea ebx, [edi + ebx*4 - 4]
cmp ebx, esi
sete bl
test bl, bl
jne 0x4aacba
mov eax, dword [esp + 0x140]
mov ebx, dword [esp + 0x144]
jmp 0x4aacc0
mov edi, dword [esp + 0x154]
xor ebx, ebx
jmp 0x4ab7cc
mov edi, dword [esp + 0x154]
xor ebx, ebx
jmp 0x4ab7cc
mov edx, dword [esp + 0x13c]
mov ebp, dword [esp + 0x148]
xor ebx, ebx
jmp 0x4aacb2
mov ecx, dword [esp + 0x150]
mov edx, dword [esp + 0x13c]
mov ebp, dword [esp + 0x148]
xor ebx, ebx
jmp 0x4aacb2
call fcn.00424360
ud2
call fcn.00424360
ud2
call fcn.00424360
ud2
call fcn.00424360
ud2
call fcn.00424360
ud2
call fcn.00446b60
jmp fcn.004aac40