Function at 0x4f7250
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 0x4f7297
sub ecx, edx
inc ecx
mov dword [ebp - 4], ecx
jmp 0x4f72b0
mov ecx, dword [ebx + 0x18]
lea eax, [esi - 1]
add eax, edx
cmp eax, ecx
jbe 0x4f72ab
sub ecx, edx
inc ecx
mov dword [ebp - 4], ecx
jmp 0x4f72b0
mov ecx, esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x1c], edi
test ecx, ecx
jle 0x4f7505
mov esi, edx
mov dword [ebp - 0x14], edx
cmp dword [ebp - 8], 0
jne 0x4f7505
mov eax, dword [ebp + 8]
cmp esi, dword [eax + 0x18]
je 0x4f73a9
mov eax, dword [ebx + 0x38]
test eax, eax
je 0x4f73a9
push esi
push eax
call fcn.00505250
add esp, 8
test eax, eax
je 0x4f73a6
mov eax, dword [ebx + 0xd4]
push 0
push esi
push dword [eax + 0x2c]
call dword [0x5ac248]
add esp, 0xc
test eax, eax
jne 0x4f7314
mov dword [ebp - 0xc], eax
jmp 0x4f742e
mov ecx, dword [eax + 4]
mov edx, dword [ebx + 0xd4]
cmp dword [ecx], 0
jne 0x4f7331
push eax
push esi
push edx
call fcn.004fa500
add esp, 0xc
mov ecx, eax
jmp 0x4f7338
inc dword [edx + 0xc]
inc word [ecx + 0x1e]
mov dword [ebp - 0xc], ecx
test ecx, ecx
je 0x4f742e
movzx eax, word [ecx + 0x1c]
mov edx, 1
test al, 8
cmovne edi, edx
mov dword [ebp - 0x10], edi
test al, 0x20
je 0x4f73a0
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.0048cb10
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 0x4f742e
push ecx
jmp 0x4f7426
mov ecx, dword [ebp - 4]
mov eax, dword [0x5ac2d0]
cdq
idiv dword [ebx + 0x98]
inc eax
cmp esi, eax
je 0x4f7431
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 0x4f742e
push dword [ebp - 0xc]
call fcn.004f8530
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 0x4f7425
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 0x4f737c
push edx
call fcn.0051ff80
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 0x4f72c0
cmp dword [ebp - 8], 0
jne 0x4f7505
test edi, edi
je 0x4f7505
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 0x4f74f7
mov eax, dword [ecx + 4]
mov edx, dword [ebx + 0xd4]
cmp dword [eax], 0
jne 0x4f7496
push ecx
push esi
push edx
call fcn.004fa500
add esp, 0xc
jmp 0x4f749d
inc dword [edx + 0xc]
inc word [eax + 0x1e]
test eax, eax
je 0x4f74f7
or word [eax + 0x1c], 8
test byte [eax + 0x1c], 0x20
je 0x4f74ee
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.0048cb10
push edx
push eax
mov eax, dword [edi + 0x48]
push esi
call eax
mov esi, dword [ebp - 0x18]
add esp, 0x10
jmp 0x4f74f7
push eax
call fcn.0051ff80
add esp, 4
inc esi
sub dword [ebp - 4], 1
mov dword [ebp - 0x18], esi
jne 0x4f7460
and byte [ebx + 0x14], 0xfb
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret