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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
push 8
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
mov esi, dword [edi + 8]
mov eax, dword [edi]
add esi, 0x28
push esi
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], eax
call fcn.004d7e0e
mov dword [edi + 0x14], ebx
inc ebx
cmp dword [edi + 0x50], 7
pop ecx
pop ecx
jne 0x4f9ebe
mov eax, dword [ebp - 0x14]
mov byte [eax + 0x40], bl
jmp 0x4fa183
mov eax, dword [edi + 0x20]
mov dword [ebp - 4], eax
mov eax, dword [edi + 0x58]
push 3
pop ecx
and eax, ecx
mov dword [ebp - 0x18], eax
cmp eax, ebx
jne 0x4f9f18
mov eax, dword [edi + 8]
add eax, 0x168
mov dword [ebp - 0x10], eax
test byte [eax + 0x1c], 0x10
je 0x4f9ef5
mov ecx, dword [eax + 0x18]
mov eax, dword [eax + 4]
shr ecx, 2
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], eax
jmp 0x4f9ef8
mov ecx, dword [ebp - 0xc]
xor edx, edx
test ecx, ecx
jle 0x4f9f18
mov edi, dword [ebp - 8]
mov ebx, dword [ebp - 4]
mov eax, dword [edi + edx*4]
add ebx, dword [eax + 4]
inc edx
cmp edx, ecx
jl 0x4f9f04
mov edi, dword [ebp + 8]
mov dword [ebp - 4], ebx
xor ebx, ebx
inc ebx
push 2
pop ecx
mov edx, dword [edi + 0x4c]
lea eax, [edx + 1]
mov dword [edi + 0x4c], eax
cmp edx, dword [ebp - 4]
jge 0x4fa17c
cmp dword [ebp - 0x18], ecx
jne 0x4f9f41
mov eax, dword [edi + 4]
imul ecx, edx, 0x14
push 2
cmp byte [ecx + eax], 0x9d
pop ecx
jne 0x4f9f1b
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0xe8], 0
je 0x4f9f73
push 9
pop eax
push eax
mov dword [edi + 0x50], eax
call fcn.004e2047
push eax
push 0x5d7be8
push dword [ebp - 0x14]
lea eax, [edi + 0x2c]
push eax
call fcn.004f0d83
add esp, 0x14
jmp 0x4fa183
cmp edx, dword [edi + 0x20]
jge 0x4f9f83
imul eax, edx, 0x14
add eax, dword [edi + 4]
mov dword [ebp - 4], eax
jmp 0x4f9fb5
mov eax, dword [ebp - 8]
xor ecx, ecx
sub edx, dword [edi + 0x20]
mov eax, dword [eax]
mov eax, dword [eax + 4]
cmp edx, eax
jl 0x4f9fa7
mov edi, dword [ebp - 8]
sub edx, eax
inc ecx
mov eax, dword [edi + ecx*4]
mov eax, dword [eax + 4]
cmp edx, eax
jge 0x4f9f97
mov edi, dword [ebp + 8]
mov eax, dword [ebp - 8]
mov eax, dword [eax + ecx*4]
imul ecx, edx, 0x14
add ecx, dword [eax]
mov dword [ebp - 4], ecx
mov ecx, dword [edi + 0x58]
and cl, 3
push 4
pop eax
cmp cl, bl
jne 0x4fa074
push eax
mov eax, edx
cdq
mov dword [esi + 0x10], eax
mov eax, 0xa02
pop ecx
mov word [esi + 0x1c], cx
mov dword [esi + 0x14], edx
mov word [esi + 0x44], ax
mov eax, dword [ebp - 4]
movzx eax, byte [eax]
mov eax, dword [eax*4 + 0x5b3d18]
push eax
mov dword [esi + 0x2c], eax
call fcn.004f1a12
pop ecx
mov ecx, dword [ebp - 4]
mov dword [esi + 0x40], eax
mov byte [esi + 0x46], bl
add esi, 0x50
cmp byte [ecx + 1], 0xee
jne 0x4fa079
mov edx, dword [ebp - 0xc]
xor eax, eax
test edx, edx
jle 0x4fa026
mov edi, dword [ebp - 8]
mov ecx, dword [ecx + 0x10]
cmp dword [edi + eax*4], ecx
je 0x4fa020
inc eax
cmp eax, edx
jl 0x4fa016
mov edi, dword [ebp + 8]
mov ecx, dword [ebp - 4]
cmp eax, edx
jne 0x4fa079
xor eax, eax
test edx, edx
setne al
push eax
lea eax, [edx*4 + 4]
push eax
push dword [ebp - 0x10]
call fcn.004fa665
add esp, 0xc
push 4
test eax, eax
jne 0x4fa06f
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
mov ecx, dword [eax + 4]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
mov dword [ecx + edx*4], eax
lea ecx, [edx*4 + 4]
mov eax, dword [ebp - 0x10]
or word [eax + 0x1c], 0x10
mov dword [eax + 0x18], ecx
mov ecx, dword [ebp - 4]
jmp 0x4fa07b
mov ecx, dword [ebp - 4]
jmp 0x4fa07c
push 4
pop eax
mov word [esi + 0x1c], ax
mov eax, dword [ecx + 4]
cdq
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], edx
push 4
pop eax
mov word [esi + 0x44], ax
mov eax, dword [ecx + 8]
cdq
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], edx
push 4
pop eax
mov word [esi + 0x6c], ax
mov eax, dword [ecx + 0xc]
cdq
push 0
mov dword [esi + 0x60], eax
mov dword [esi + 0x64], edx
add esi, 0x78
push 0x20
push esi
call fcn.004fa665
add esp, 0xc
test eax, eax
jne 0x4fa183
push 0x20
push dword [esi + 4]
mov eax, 0x202
mov word [esi + 0x1c], ax
mov eax, dword [ebp - 4]
push eax
call fcn.004ccd67
add esp, 0xc
cmp eax, dword [esi + 4]
je 0x4fa0f4
push 0
push ebx
push 0xffffffffffffffff
push eax
push esi
call fcn.004fab26
add esp, 0x14
jmp 0x4fa103
push dword [esi + 4]
call fcn.004f1a12
pop ecx
mov dword [esi + 0x18], eax
mov byte [esi + 0x1e], bl
mov eax, dword [edi + 0x58]
add esi, 0x28
and al, 3
cmp al, bl
jne 0x4fa155
push 0
push 4
pop eax
push eax
push esi
call fcn.004fa665
add esp, 0xc
test eax, eax
jne 0x4fa183
mov eax, 0x202
mov dword [esi + 0x18], 2
mov word [esi + 0x1c], ax
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 3]
push eax
push str._.2x
push dword [esi + 4]
push 3
pop eax
push eax
call fcn.004c1df7
mov byte [esi + 0x1e], bl
add esp, 0x10
mov word [esi + 0x44], bx
mov ax, word [edi + 0x58]
push 3
pop ecx
and ax, cx
push 2
dec ax
pop ecx
sub cx, ax
mov eax, dword [edi + 8]
shl cx, 2
add eax, 0x28
mov word [edi + 0x54], cx
mov dword [edi + 0x14], eax
push 0x64
jmp 0x4fa17e
push 0x65
and dword [edi + 0x50], 0
pop ebx
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret