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

Disassembly:
sub esp, 0x18
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x2c]
xor ebx, ebx
push 8
mov dword [esp + 0x20], ebx
mov dword [esp + 0x1c], ebx
mov esi, dword [edi + 8]
mov ebp, dword [edi]
add esi, 0x28
push esi
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebp
call fcn.00489d89
mov dword [edi + 0x14], ebx
inc ebx
cmp dword [edi + 0x5c], 7
pop ecx
pop ecx
jne 0x4a903c
mov byte [ebp + 0x1e], bl
jmp 0x4a92eb
mov al, byte [edi + 0x61]
mov ecx, dword [edi + 0x1c]
mov dword [esp + 0x14], ecx
mov byte [esp + 0x13], al
cmp al, bl
jne 0x4a90a4
mov ebp, dword [edi + 8]
add ebp, 0x168
mov dword [esp + 0x20], ebp
test byte [ebp + 0x1c], 0x10
je 0x4a9074
mov ecx, dword [ebp + 0x18]
mov eax, dword [ebp + 4]
shr ecx, 2
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], eax
jmp 0x4a9078
mov ecx, dword [esp + 0x1c]
xor edx, edx
test ecx, ecx
jle 0x4a909d
mov edi, dword [esp + 0x18]
mov ebp, dword [esp + 0x14]
mov eax, dword [edi + edx*4]
add ebp, dword [eax + 4]
inc edx
cmp edx, ecx
jl 0x4a9086
mov edi, dword [esp + 0x2c]
mov ecx, ebp
mov dword [esp + 0x14], ebp
jmp 0x4a90a0
mov ecx, dword [edi + 0x1c]
mov ebp, dword [esp + 0x24]
mov edx, dword [edi + 0x58]
lea eax, [edx + 1]
mov dword [edi + 0x58], eax
cmp edx, ecx
jge 0x4a92e4
cmp byte [esp + 0x13], 2
jne 0x4a90cc
mov eax, dword [edi + 4]
imul ecx, edx, 0x14
cmp byte [ecx + eax], 0x96
mov ecx, dword [esp + 0x14]
jne 0x4a90a4
cmp dword [ebp + 0xe0], 0
je 0x4a90f9
push 9
pop eax
push eax
mov dword [edi + 0x5c], eax
call fcn.00492f58
push eax
push 0x4df798
lea eax, [edi + 0x38]
push ebp
push eax
call fcn.004a006c
add esp, 0x14
jmp 0x4a92eb
cmp edx, dword [edi + 0x1c]
jge 0x4a9106
imul ebp, edx, 0x14
add ebp, dword [edi + 4]
jmp 0x4a912b
mov ebp, dword [esp + 0x18]
sub edx, dword [edi + 0x1c]
xor ecx, ecx
mov eax, dword [ebp]
jmp 0x4a911b
sub edx, eax
inc ecx
mov eax, dword [ebp + ecx*4]
mov eax, dword [eax + 4]
cmp edx, eax
jge 0x4a9114
mov eax, dword [ebp + ecx*4]
imul ebp, edx, 0x14
add ebp, dword [eax]
push 4
pop ecx
cmp byte [edi + 0x61], bl
jne 0x4a91e6
mov eax, edx
mov word [esi + 0x1c], cx
cdq
mov dword [esi + 0x10], eax
mov eax, 0xa02
mov byte [esi + 0x1e], bl
mov dword [esi + 0x14], edx
mov word [esi + 0x44], ax
movzx eax, byte [ebp]
mov eax, dword [eax*4 + 0x4de4d8]
push eax
mov dword [esi + 0x2c], eax
call fcn.004a0cc8
mov dword [esi + 0x40], eax
mov byte [esi + 0x46], 3
mov byte [esi + 0x47], bl
add esi, 0x50
cmp byte [ebp + 1], 0xee
pop ecx
jne 0x4a91e3
mov eax, dword [esp + 0x1c]
xor ecx, ecx
lea edx, [eax*4 + 4]
test eax, eax
jle 0x4a91a5
mov edx, dword [esp + 0x18]
mov edi, dword [ebp + 0x10]
cmp dword [edx + ecx*4], edi
je 0x4a919a
inc ecx
cmp ecx, eax
jl 0x4a9190
mov edi, dword [esp + 0x2c]
lea edx, [eax*4 + 4]
cmp ecx, eax
jne 0x4a91e3
push ebx
push edx
push dword [esp + 0x28]
call fcn.004a97b5
add esp, 0xc
push 4
test eax, eax
jne 0x4a91e5
mov edx, dword [esp + 0x24]
mov edi, dword [esp + 0x20]
mov eax, dword [ebp + 0x10]
mov ecx, dword [edx + 4]
mov dword [ecx + edi*4], eax
lea eax, [edi*4 + 4]
or word [edx + 0x1c], 0x10
mov edi, dword [esp + 0x30]
mov dword [edx + 0x18], eax
jmp 0x4a91e5
push 4
pop ecx
mov word [esi + 0x1c], cx
mov eax, dword [ebp + 4]
mov byte [esi + 0x1e], bl
cdq
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], edx
mov word [esi + 0x44], cx
mov eax, dword [ebp + 8]
cdq
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], edx
mov byte [esi + 0x46], bl
mov word [esi + 0x6c], cx
mov eax, dword [ebp + 0xc]
cdq
push 0
mov dword [esi + 0x60], eax
mov dword [esi + 0x64], edx
mov byte [esi + 0x6e], bl
add esi, 0x78
push 0x20
push esi
call fcn.004a97b5
add esp, 0xc
test eax, eax
jne 0x4a92eb
push 0x20
push dword [esi + 4]
mov eax, 0x602
push ebp
mov word [esi + 0x1c], ax
call fcn.0047ecdb
add esp, 0xc
cmp eax, dword [esi + 4]
je 0x4a925e
push 0
push ebx
push 0xffffffffffffffff
push eax
push esi
call fcn.004a9c42
add esp, 0x14
jmp 0x4a926d
push dword [esi + 4]
call fcn.004a0cc8
pop ecx
mov dword [esi + 0x18], eax
mov byte [esi + 0x1f], bl
mov byte [esi + 0x1e], 3
add esi, 0x28
push 2
pop ecx
cmp byte [edi + 0x61], bl
jne 0x4a92c6
push 0
push 4
push esi
call fcn.004a97b5
add esp, 0xc
test eax, eax
jne 0x4a92eb
mov eax, 0x602
mov dword [esi + 0x18], 2
mov word [esi + 0x1c], ax
movzx eax, byte [ebp + 3]
push eax
push str._.2x
push dword [esi + 4]
push 3
call fcn.004755a6
add esp, 0x10
mov byte [esi + 0x1e], 3
mov byte [esi + 0x1f], bl
mov word [esi + 0x44], bx
mov byte [esi + 0x46], 5
push 2
pop ecx
movzx eax, byte [edi + 0x61]
dec ax
sub cx, ax
mov eax, dword [edi + 8]
shl cx, 2
add eax, 0x28
mov word [edi + 0x30], cx
mov dword [edi + 0x14], eax
push 0x64
jmp 0x4a92e6
push 0x65
and dword [edi + 0x5c], 0
pop ebx
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x18
ret