Function at 0x4af484
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.00490213
mov dword [edi + 0x14], ebx
inc ebx
cmp dword [edi + 0x5c], 7
pop ecx
pop ecx
jne 0x4af4c5
mov byte [ebp + 0x1e], bl
jmp 0x4af774
mov al, byte [edi + 0x61]
mov ecx, dword [edi + 0x1c]
mov dword [esp + 0x14], ecx
mov byte [esp + 0x13], al
cmp al, bl
jne 0x4af52d
mov ebp, dword [edi + 8]
add ebp, 0x168
mov dword [esp + 0x20], ebp
test byte [ebp + 0x1c], 0x10
je 0x4af4fd
mov ecx, dword [ebp + 0x18]
mov eax, dword [ebp + 4]
shr ecx, 2
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], eax
jmp 0x4af501
mov ecx, dword [esp + 0x1c]
xor edx, edx
test ecx, ecx
jle 0x4af526
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 0x4af50f
mov edi, dword [esp + 0x2c]
mov ecx, ebp
mov dword [esp + 0x14], ebp
jmp 0x4af529
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 0x4af76d
cmp byte [esp + 0x13], 2
jne 0x4af555
mov eax, dword [edi + 4]
imul ecx, edx, 0x14
cmp byte [ecx + eax], 0x96
mov ecx, dword [esp + 0x14]
jne 0x4af52d
cmp dword [ebp + 0xe0], 0
je 0x4af582
push 9
pop eax
push eax
mov dword [edi + 0x5c], eax
call fcn.004993e2
push eax
push 0x4e6420
lea eax, [edi + 0x38]
push ebp
push eax
call fcn.004a64f5
add esp, 0x14
jmp 0x4af774
cmp edx, dword [edi + 0x1c]
jge 0x4af58f
imul ebp, edx, 0x14
add ebp, dword [edi + 4]
jmp 0x4af5b4
mov ebp, dword [esp + 0x18]
sub edx, dword [edi + 0x1c]
xor ecx, ecx
mov eax, dword [ebp]
jmp 0x4af5a4
sub edx, eax
inc ecx
mov eax, dword [ebp + ecx*4]
mov eax, dword [eax + 4]
cmp edx, eax
jge 0x4af59d
mov eax, dword [ebp + ecx*4]
imul ebp, edx, 0x14
add ebp, dword [eax]
push 4
pop ecx
cmp byte [edi + 0x61], bl
jne 0x4af66f
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 + 0x4e5158]
push eax
mov dword [esi + 0x2c], eax
call fcn.004a7151
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 0x4af66c
mov eax, dword [esp + 0x1c]
xor ecx, ecx
lea edx, [eax*4 + 4]
test eax, eax
jle 0x4af62e
mov edx, dword [esp + 0x18]
mov edi, dword [ebp + 0x10]
cmp dword [edx + ecx*4], edi
je 0x4af623
inc ecx
cmp ecx, eax
jl 0x4af619
mov edi, dword [esp + 0x2c]
lea edx, [eax*4 + 4]
cmp ecx, eax
jne 0x4af66c
push ebx
push edx
push dword [esp + 0x28]
call fcn.004afc3e
add esp, 0xc
push 4
test eax, eax
jne 0x4af66e
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 0x4af66e
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.004afc3e
add esp, 0xc
test eax, eax
jne 0x4af774
push 0x20
push dword [esi + 4]
mov eax, 0x602
push ebp
mov word [esi + 0x1c], ax
call fcn.00485168
add esp, 0xc
cmp eax, dword [esi + 4]
je 0x4af6e7
push 0
push ebx
push 0xffffffffffffffff
push eax
push esi
call fcn.004b00cb
add esp, 0x14
jmp 0x4af6f6
push dword [esi + 4]
call fcn.004a7151
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 0x4af74f
push 0
push 4
push esi
call fcn.004afc3e
add esp, 0xc
test eax, eax
jne 0x4af774
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.0047ba30
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 0x4af76f
push 0x65
and dword [edi + 0x5c], 0
pop ebx
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x18
ret