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

Disassembly:
push ecx
mov ecx, dword [esp + 0x1c]
push ebx
mov ebx, dword [esp + 0x18]
push ebp
push esi
mov esi, dword [esp + 0x14]
mov eax, dword [ebx]
mov dword [ebx], 0
mov dword [ecx], 0
mov ecx, dword [esi + 0x78]
cmp ecx, 8
push edi
mov dword [esp + 0x10], eax
je 0x4f6bc8
jmp 0x4f69a5
mov eax, dword [esp + 0x10]
mov ecx, dword [esi + 0x78]
mov ebp, dword [esi + 0x24]
cmp ecx, 9
je 0x4f6c10
mov edi, dword [esp + 0x1c]
cmp ebp, edi
jne 0x4f69c8
mov edx, dword [esp + 0x28]
test edx, edx
je 0x4f6bda
cmp ecx, 6
je 0x4f69fc
cmp ecx, 7
je 0x4f69fc
mov ecx, dword [ebx]
cmp ecx, eax
je 0x4f6bec
mov eax, dword [esp + 0x20]
inc ecx
mov dword [ebx], ecx
mov cl, byte [eax]
inc eax
push ecx
push esi
mov dword [esp + 0x28], eax
call fcn.004f6c20
add esp, 8
mov dword [esi + 0x78], eax
jmp 0x4f6bbe
mov edx, dword [ebx]
mov ecx, dword [esi + 0x74]
sub edi, ebp
sub eax, edx
cmp ecx, edi
mov dword [esp + 0x24], eax
mov dword [esp + 0x18], 0
ja 0x4f6a1f
mov edi, ecx
mov dword [esp + 0x18], 1
mov cl, byte [esi + 0x7c]
test cl, 0x80
jne 0x4f6acc
cmp edx, dword [esp + 0x10]
je 0x4f6bfe
cmp dword [esi + 0x78], 6
jne 0x4f6a82
xor eax, eax
cmp cl, 1
sete al
test eax, eax
je 0x4f6a5a
mov ecx, 1
mov dword [esi + 0x84], ecx
mov dword [esi + 0x88], ecx
jmp 0x4f6a68
mov ecx, dword [esi + 0x80]
test ecx, ecx
jne 0x4f6c10
push 0
push eax
push esi
mov dword [esi + 0x80], 0
call fcn.004f4de0
mov eax, dword [esp + 0x30]
add esp, 0xc
cmp eax, edi
jbe 0x4f6a8c
mov eax, edi
mov dword [esp + 0x24], eax
test eax, eax
je 0x4f6c10
mov edi, dword [esp + 0x20]
push eax
push edi
push esi
call fcn.004f6da0
mov eax, dword [esp + 0x30]
mov ebp, dword [ebx]
add edi, eax
add ebp, eax
mov dword [esp + 0x2c], edi
mov dword [ebx], ebp
mov edi, dword [esi + 0x74]
add esp, 0xc
sub edi, eax
mov eax, edi
mov dword [esi + 0x74], edi
neg eax
sbb eax, eax
and eax, 7
mov dword [esi + 0x78], eax
jmp 0x4f6bbe
cmp dword [esi + 0x78], 6
jne 0x4f6b31
shr ecx, 5
and ecx, 3
xor eax, eax
cmp ecx, 3
sete al
xor edx, edx
test ecx, ecx
setg dl
test eax, eax
mov ecx, edx
jne 0x4f6afb
mov edx, dword [esi + 0x80]
test edx, edx
jne 0x4f6c10
test ecx, ecx
jne 0x4f6b0d
mov edx, dword [esi + 0x84]
test edx, edx
jne 0x4f6c10
push ecx
push eax
push esi
call fcn.004f4de0
add esp, 0xc
xor eax, eax
mov dword [esi + 0x80], eax
mov dword [esi + 0x84], eax
mov eax, dword [esp + 0x24]
mov dword [esi + 0x78], 7
mov ecx, dword [esi + 0x70]
cmp eax, ecx
jbe 0x4f6b3c
mov dword [esp + 0x24], ecx
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x24]
lea edx, [esp + 0x28]
push ecx
push edx
add edi, ebp
push eax
push edi
push esi
call fcn.004f4e40
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
mov edi, dword [ebx]
add ecx, edx
add edi, edx
mov dword [esp + 0x38], ecx
mov dword [ebx], edi
mov ecx, dword [esi + 0x70]
sub ecx, edx
add esp, 0x18
mov dword [esi + 0x70], ecx
mov ecx, dword [esi + 0x24]
sub ecx, ebp
mov ebp, dword [esi + 0x74]
sub ebp, ecx
test eax, eax
mov dword [esi + 0x74], ebp
jne 0x4f6bd4
mov edi, dword [esp + 0x2c]
mov edi, dword [edi]
cmp edi, 3
je 0x4f6bd4
test edx, edx
jne 0x4f6baf
test ecx, ecx
jne 0x4f6baf
cmp edi, 4
jne 0x4f6c10
test ebp, ebp
jne 0x4f6c10
mov eax, dword [esi + 0x70]
test eax, eax
jne 0x4f6c10
mov dword [esi + 0x78], ecx
mov eax, dword [esp + 0x2c]
cmp dword [eax], 4
jne 0x4f6bbe
mov dword [eax], 2
cmp dword [esi + 0x78], 8
jne 0x4f69a1
mov ecx, dword [esp + 0x2c]
xor eax, eax
mov dword [ecx], 1
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
pop ebp
mov dword [ecx], 2
xor eax, eax
pop ebx
pop ecx
ret
mov edx, dword [esp + 0x2c]
pop edi
pop esi
pop ebp
mov dword [edx], 3
xor eax, eax
pop ebx
pop ecx
ret
mov eax, dword [esp + 0x2c]
pop edi
pop esi
pop ebp
mov dword [eax], 3
xor eax, eax
pop ebx
pop ecx
ret
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret