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

Disassembly:
mov ecx, dword [esp + 0xc]
sub esp, 0x5c
lea eax, [ecx - 2]
cmp ax, 0xe
ja 0x4ab194
mov eax, dword [esp + 0x70]
push ebx
mov ebx, dword [esp + 0x70]
push ebp
mov ebp, dword [eax]
add ebp, ebx
mov dword [esp + 0x2c], ebx
xor eax, eax
mov dword [esp + 0x34], ebp
mov dword [esp + 0xc], eax
movzx eax, cx
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x20], eax
cdq
push esi
mov esi, eax
mov dword [esp + 0x28], edx
lea eax, [ebx + 1]
mov dword [esp + 0x2c], esi
push edi
mov dword [esp + 0x10], eax
mov edi, ebx
mov eax, dword [esp + 0x70]
push edx
push esi
push ecx
push eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x34], ecx
call fcn.004e7cc0
mov dword [esp + 0x20], edx
mov edx, dword [esp + 0x10]
mov dword [esp + 0x1c], eax
cmp edx, ebp
ja 0x4ab23d
mov ecx, dword [esp + 0x28]
mov esi, edi
imul ecx, eax
inc edi
mov eax, dword [esp + 0x18]
inc edx
mov dword [esp + 0x38], edi
mov dword [esp + 0x10], edx
sub eax, ecx
cmp byte [esp + 0x90], 0
mov ecx, dword [esp + 0x78]
mov al, byte [eax + 0x5474f7]
mov byte [esi], al
je 0x4ab030
cmp cx, 0xa
jne 0x4ab030
mov esi, dword [esp + 0x14]
inc esi
mov dword [esp + 0x14], esi
cmp esi, 3
jne 0x4ab030
cmp edx, ebp
ja 0x4ab1a1
mov eax, edi
inc edx
mov dword [esp + 0x10], edx
inc edi
mov dl, byte [esp + 0x90]
mov dword [esp + 0x38], edi
mov byte [eax], dl
xor eax, eax
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x1c]
or eax, dword [esp + 0x20]
je 0x4ab04f
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x2c]
mov esi, dword [esp + 0x30]
jmp 0x4aafa5
mov dl, byte [esp + 0x8c]
mov dh, byte [esp + 0x84]
cmp dl, 0x30
jne 0x4ab0bf
cmp dword [esp + 0x24], 0
jg 0x4ab07c
jl 0x4ab072
cmp dword [esp + 0x18], 0
jae 0x4ab07c
mov esi, dword [esp + 0x88]
dec esi
jmp 0x4ab083
mov esi, dword [esp + 0x88]
test dh, dh
je 0x4ab099
cmp cx, 8
jne 0x4ab090
dec esi
jmp 0x4ab099
cmp cx, 0x10
jne 0x4ab099
sub esi, 2
mov ecx, edi
sub ecx, ebx
cmp ecx, esi
jge 0x4ab0c6
lea eax, [ebx + 1]
add eax, ecx
cmp eax, ebp
ja 0x4ab1bb
mov eax, edi
inc ecx
inc edi
mov dword [esp + 0x38], edi
mov byte [eax], 0x30
cmp ecx, esi
jl 0x4ab0a1
jmp 0x4ab0c6
mov esi, dword [esp + 0x88]
test dh, dh
je 0x4ab105
mov ecx, dword [esp + 0x78]
cmp cx, 8
je 0x4ab0e8
cmp cx, 0x10
jne 0x4ab105
push 0
lea ecx, [esp + 0x38]
call fcn.004a8a00
mov byte [eax], 0x78
push 0
lea ecx, [esp + 0x38]
call fcn.004a8a00
mov dl, byte [esp + 0x8c]
mov edi, dword [esp + 0x38]
mov ebp, dword [esp + 0x3c]
mov byte [eax], 0x30
cmp dword [esp + 0x24], 0
jg 0x4ab127
jl 0x4ab115
cmp dword [esp + 0x18], 0
jae 0x4ab127
lea ecx, [edi + 1]
cmp ecx, ebp
ja 0x4ab1d5
mov eax, edi
mov edi, ecx
mov byte [eax], 0x2d
cmp dl, 0x30
je 0x4ab14b
mov ecx, edi
sub ecx, ebx
cmp ecx, esi
jge 0x4ab14b
lea eax, [ebx + 1]
add eax, ecx
cmp eax, ebp
ja 0x4ab209
mov eax, edi
inc ecx
inc edi
mov byte [eax], dl
cmp ecx, esi
jl 0x4ab134
mov ecx, dword [esp + 0x80]
mov eax, edi
sub eax, ebx
mov dword [ecx], eax
lea eax, [edi - 1]
cmp eax, ebp
jbe 0x4ab164
jmp 0x4ab1ef
mov eax, edi
dec edi
mov byte [eax], 0
cmp ebx, edi
jae 0x4ab18a
lea edx, [edi - 1]
mov ah, byte [edi]
cmp edx, ebp
ja 0x4ab223
mov al, byte [ebx]
mov ecx, edi
dec edi
dec edx
mov byte [ecx], al
mov byte [ebx], ah
inc ebx
cmp ebx, edi
jb 0x4ab171
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x5c
ret
mov eax, dword [esp + 0x6c]
mov byte [eax], 0
xor al, al
add esp, 0x5c
ret
push 0
lea ecx, [esp + 0x44]
call fcn.004a6dc0
push 0x589408
lea eax, [esp + 0x44]
push eax
call fcn.004b84f4
push 0
lea ecx, [esp + 0x44]
call fcn.004a6dc0
push 0x589408
lea eax, [esp + 0x44]
push eax
call fcn.004b84f4
push 0
lea ecx, [esp + 0x44]
call fcn.004a6dc0
push 0x589408
lea eax, [esp + 0x44]
push eax
call fcn.004b84f4
push 0
lea ecx, [esp + 0x44]
call fcn.004a6dc0
push 0x589408
lea eax, [esp + 0x44]
push eax
call fcn.004b84f4
push 0
lea ecx, [esp + 0x44]
call fcn.004a6dc0
push 0x589408
lea eax, [esp + 0x44]
push eax
call fcn.004b84f4
push 0
lea ecx, [esp + 0x44]
call fcn.004a6dc0
push 0x589408
lea eax, [esp + 0x44]
push eax
call fcn.004b84f4
push 0
lea ecx, [esp + 0x44]
call fcn.004a6dc0
push 0x589408
lea eax, [esp + 0x44]
push eax
call fcn.004b84f4
int3