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

Disassembly:
mov eax, 0x6748be
call fcn.006313fc
sub esp, 0x48
xor eax, eax
mov byte [esp + 2], 1
and dword [esp + 0x24], eax
push ebx
mov ebx, ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x30], eax
xor ecx, ecx
mov byte [esp + 7], al
push ebp
mov eax, dword [ebx + 8]
mov ebp, 0x9c
sub eax, dword [ebx + 4]
cdq
idiv ebp
mov dword [esp + 0x20], ebx
mov dword [esp + 0xc], ecx
test eax, eax
je 0x4ff0ba
xor ebp, ebp
push esi
mov dword [esp + 0x34], ebp
push edi
mov esi, dword [ebx + 4]
xor edi, edi
add esi, ebp
mov byte [esp + 0x11], 1
xor ebp, ebp
mov dword [esp + 0x1c], ebp
mov eax, dword [esi + 8]
add eax, dword [esi]
mov dword [esp + 0x2c], eax
mov eax, dword [esi + 0xc]
adc eax, dword [esi + 4]
mov dword [esp + 0x30], eax
push 0
push dword [esp + 0x74]
lea eax, [ecx + 1]
mov dword [esp + 0x44], eax
cdq
push edx
push eax
call fcn.00637fe0
mov dword [esp + 0x18], eax
lea eax, [ebx + 0xd8]
cmp dword [eax], 0
mov dword [esp + 0x24], edx
je 0x4fee97
push dword [esp + 0x14]
mov ecx, eax
call fcn.0049ab4d
cmp eax, dword [ebx + 0xcc]
je 0x4fee62
mov ebx, dword [esp + 0x6c]
mov edx, eax
shr edx, 3
mov cl, al
and cl, 7
mov dl, byte [edx + ebx]
mov ebx, dword [esp + 0x28]
shr dl, cl
test dl, 1
je 0x4fee62
mov edi, dword [esp + 0x18]
sub edi, dword [esi]
mov edx, dword [esp + 0x24]
mov ebp, edx
sbb ebp, dword [esi + 4]
cmp eax, dword [esp + 0x14]
mov cl, byte [esp + 0x11]
sete al
mov dword [esp + 0x1c], ebp
and cl, al
jmp 0x4fee68
mov edx, dword [esp + 0x24]
xor cl, cl
mov eax, dword [esp + 0x18]
mov byte [esp + 0x11], cl
cmp dword [esp + 0x30], edx
jb 0x4feecf
ja 0x4fee7e
cmp dword [esp + 0x2c], eax
jb 0x4feecf
cmp dword [esp + 0x2c], eax
jne 0x4fee8a
cmp dword [esp + 0x30], edx
je 0x4feecb
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x14], ecx
jmp 0x4fede5
mov ecx, dword [esp + 0x14]
mov eax, ecx
mov ebx, dword [esp + 0x6c]
and cl, 7
sar eax, 3
mov al, byte [eax + ebx]
mov ebx, dword [esp + 0x28]
shr al, cl
test al, 1
je 0x4fee66
mov eax, dword [esp + 0x18]
mov ebp, edx
mov cl, byte [esp + 0x11]
mov edi, eax
sub edi, dword [esi]
sbb ebp, dword [esi + 4]
mov dword [esp + 0x1c], ebp
jmp 0x4fee70
inc dword [esp + 0x14]
cmp ebp, dword [esi + 0xc]
jb 0x4feee5
ja 0x4feedb
cmp edi, dword [esi + 8]
jb 0x4feee5
mov ebp, dword [esi + 0xc]
mov edi, dword [esi + 8]
mov dword [esp + 0x1c], ebp
shl cl, 3
xor cl, byte [esi + 0x66]
and cl, 8
xor byte [esi + 0x66], cl
cmp byte [esp + 0x78], 0
mov cl, byte [esi + 0x66]
je 0x4ff08b
test cl, 2
je 0x4fef8f
or edi, ebp
je 0x4ff08b
cmp byte [esp + 0x13], 0
jne 0x4fef4e
lea eax, [esp + 0x40]
mov ecx, ebx
push eax
call fcn.004fd7c5
mov ecx, dword [esp + 0x20]
and dword [esp + 0x60], 0
or ecx, 1
cmp dword [eax + 0x14], 8
mov dword [esp + 0x20], ecx
mov dword [esp + 0x3c], ecx
jb 0x4fef3f
mov eax, dword [eax]
push eax
call fcn.0045e93a
mov byte [esp + 0x11], 1
test al, al
je 0x4fef53
mov byte [esp + 0x11], 0
or dword [esp + 0x60], 0xffffffff
mov eax, dword [esp + 0x20]
test al, 1
je 0x4fef74
push 0
and eax, 0xfffffffe
lea ecx, [esp + 0x44]
push 1
mov dword [esp + 0x28], eax
call fcn.0042341c
cmp byte [esp + 0x11], 0
je 0x4fef85
mov byte [esp + 0x12], 0
jmp 0x4ff08b
mov byte [esp + 0x13], 1
jmp 0x4ff08b
test cl, 8
jne 0x4fefa1
cmp byte [ebx + 0x8a], 0
je 0x4fefa1
mov al, 1
jmp 0x4fefa3
xor al, al
shl al, 2
lea edx, [ebx + 0x28]
xor al, cl
and al, 4
xor al, cl
lea ecx, [esi + 0x34]
mov byte [esi + 0x66], al
shr al, 2
and al, 1
movzx eax, al
push eax
push ecx
push edx
call fcn.0045f2a2
mov ebp, eax
mov dword [esp + 0x30], edx
mov ecx, ebp
and ecx, edx
cmp ecx, 0xffffffff
jne 0x4ff02f
mov al, byte [esi + 0x66]
shr al, 2
not al
and al, 1
movzx eax, al
push eax
lea eax, [esi + 0x34]
push eax
lea eax, [ebx + 0x28]
push eax
call fcn.0045f2a2
mov ebp, eax
mov dword [esp + 0x30], edx
and eax, edx
cmp eax, 0xffffffff
jne 0x4ff018
mov al, byte [ebx + 0x8a]
shl al, 2
xor al, byte [esi + 0x66]
and al, 4
xor byte [esi + 0x66], al
or edi, dword [esp + 0x1c]
je 0x4ff08b
jmp 0x4fef7b
mov al, byte [esi + 0x66]
mov cl, al
shr cl, 2
not cl
shl cl, 2
xor cl, al
and cl, 4
xor cl, al
mov byte [esi + 0x66], cl
push edx
push ebp
mov ecx, esi
call fcn.004fec32
mov eax, dword [esp + 0x1c]
cmp eax, dword [esp + 0x30]
jb 0x4ff050
ja 0x4fef7b
cmp edi, ebp
ja 0x4fef7b
mov dl, byte [ebx + 0x8a]
test dl, dl
je 0x4ff06c
mov al, byte [esi + 0x66]
mov cl, al
shr cl, 1
xor cl, al
test cl, 4
je 0x4ff072
test dl, dl
jne 0x4ff076
test byte [esi + 0x66], 4
je 0x4ff076
mov al, 1
jmp 0x4ff078
xor al, al
cmp byte [esp + 0x74], 0
je 0x4ff08b
test al, al
je 0x4ff08b
push esi
mov ecx, ebx
call fcn.004fd599
mov eax, dword [ebx + 8]
mov esi, 0x9c
sub eax, dword [ebx + 4]
cdq
idiv esi
mov ecx, dword [esp + 0x34]
mov ebp, dword [esp + 0x38]
inc ecx
add ebp, esi
mov dword [esp + 0x34], ecx
cmp ecx, eax
mov dword [esp + 0x38], ebp
mov ecx, dword [esp + 0x14]
jne 0x4fedc0
pop edi
pop esi
mov ecx, dword [esp + 0x50]
mov al, byte [esp + 0xa]
pop ebp
pop ebx
mov dword fs:[0], ecx
leave
ret 0x10