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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov ecx, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ebx, dword [ecx + 0x14]
xor edi, edi
mov dword [ebp - 8], 0
mov eax, dword [ebx + 0x94]
div dword [ebx + 0x98]
or byte [ebx + 0x14], 4
mov ecx, dword [ecx + 0x18]
mov esi, eax
neg eax
lea edx, [ecx - 1]
and edx, eax
inc edx
mov dword [ebp - 0x18], edx
cmp ecx, dword [ebx + 0x18]
jbe 0x4f6e77
sub ecx, edx
inc ecx
mov dword [ebp - 4], ecx
jmp 0x4f6e90
mov ecx, dword [ebx + 0x18]
lea eax, [esi - 1]
add eax, edx
cmp eax, ecx
jbe 0x4f6e8b
sub ecx, edx
inc ecx
mov dword [ebp - 4], ecx
jmp 0x4f6e90
mov ecx, esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x1c], edi
test ecx, ecx
jle 0x4f70e5
mov esi, edx
mov dword [ebp - 0x14], edx
cmp dword [ebp - 8], 0
jne 0x4f70e5
mov eax, dword [ebp + 8]
cmp esi, dword [eax + 0x18]
je 0x4f6f89
mov eax, dword [ebx + 0x38]
test eax, eax
je 0x4f6f89
push esi
push eax
call fcn.00504e10
add esp, 8
test eax, eax
je 0x4f6f86
mov eax, dword [ebx + 0xd4]
push 0
push esi
push dword [eax + 0x2c]
call dword [0x5ac248]
add esp, 0xc
test eax, eax
jne 0x4f6ef4
mov dword [ebp - 0xc], eax
jmp 0x4f700e
mov ecx, dword [eax + 4]
mov edx, dword [ebx + 0xd4]
cmp dword [ecx], 0
jne 0x4f6f11
push eax
push esi
push edx
call fcn.004fa0e0
add esp, 0xc
mov ecx, eax
jmp 0x4f6f18
inc dword [edx + 0xc]
inc word [ecx + 0x1e]
mov dword [ebp - 0xc], ecx
test ecx, ecx
je 0x4f700e
movzx eax, word [ecx + 0x1c]
mov edx, 1
test al, 8
cmovne edi, edx
mov dword [ebp - 0x10], edi
test al, 0x20
je 0x4f6f80
mov edx, dword [ecx + 0x14]
dec dword [edx + 0x78]
mov eax, dword [edx + 0x88]
mov dword [ecx + 0x10], eax
mov esi, dword [edx + 0x3c]
mov eax, dword [edx + 0x98]
mov dword [edx + 0x88], ecx
push dword [ecx + 4]
mov ecx, dword [ecx + 0x18]
mov edi, dword [esi]
dec ecx
cdq
push edx
push eax
push 0
push ecx
call fcn.0048c6e0
push edx
push eax
mov eax, dword [edi + 0x48]
push esi
call eax
mov esi, dword [ebp - 0x14]
add esp, 0x10
mov edi, dword [ebp - 0x10]
jmp 0x4f700e
push ecx
jmp 0x4f7006
mov ecx, dword [ebp - 4]
mov eax, dword [0x5ac2d0]
cdq
idiv dword [ebx + 0x98]
inc eax
cmp esi, eax
je 0x4f7011
push 0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebx + 0xcc]
push esi
push ebx
call eax
mov ecx, eax
add esp, 0x10
mov dword [ebp - 8], ecx
test ecx, ecx
jne 0x4f700e
push dword [ebp - 0xc]
call fcn.004f8110
mov edx, dword [ebp - 0xc]
add esp, 4
mov dword [ebp - 8], eax
mov ecx, 1
movzx eax, word [edx + 0x1c]
test al, 8
cmovne edi, ecx
mov dword [ebp - 0x10], edi
test al, 0x20
je 0x4f7005
mov eax, dword [edx + 0x14]
dec dword [eax + 0x78]
mov ecx, dword [eax + 0x88]
mov dword [edx + 0x10], ecx
mov esi, dword [eax + 0x3c]
mov dword [eax + 0x88], edx
push dword [edx + 4]
mov ecx, dword [edx + 0x18]
mov eax, dword [eax + 0x98]
jmp 0x4f6f5c
push edx
call fcn.0051fb60
add esp, 4
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x1c]
inc esi
inc eax
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x1c], eax
cmp eax, ecx
jl 0x4f6ea0
cmp dword [ebp - 8], 0
jne 0x4f70e5
test edi, edi
je 0x4f70e5
mov esi, dword [ebp - 0x18]
lea esp, [esp]
mov eax, dword [ebx + 0xd4]
push 0
push esi
push dword [eax + 0x2c]
call dword [0x5ac248]
mov ecx, eax
add esp, 0xc
test ecx, ecx
je 0x4f70d7
mov eax, dword [ecx + 4]
mov edx, dword [ebx + 0xd4]
cmp dword [eax], 0
jne 0x4f7076
push ecx
push esi
push edx
call fcn.004fa0e0
add esp, 0xc
jmp 0x4f707d
inc dword [edx + 0xc]
inc word [eax + 0x1e]
test eax, eax
je 0x4f70d7
or word [eax + 0x1c], 8
test byte [eax + 0x1c], 0x20
je 0x4f70ce
mov edx, dword [eax + 0x14]
dec dword [edx + 0x78]
mov ecx, dword [edx + 0x88]
mov dword [eax + 0x10], ecx
mov esi, dword [edx + 0x3c]
mov dword [edx + 0x88], eax
push dword [eax + 4]
mov ecx, dword [eax + 0x18]
mov eax, dword [edx + 0x98]
dec ecx
mov edi, dword [esi]
cdq
push edx
push eax
push 0
push ecx
call fcn.0048c6e0
push edx
push eax
mov eax, dword [edi + 0x48]
push esi
call eax
mov esi, dword [ebp - 0x18]
add esp, 0x10
jmp 0x4f70d7
push eax
call fcn.0051fb60
add esp, 4
inc esi
sub dword [ebp - 4], 1
mov dword [ebp - 0x18], esi
jne 0x4f7040
and byte [ebx + 0x14], 0xfb
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret