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

Disassembly:
sub esp, 0x9c
push ebx
push ebp
push esi
mov esi, dword [esp + 0xc4]
push edi
xor edi, edi
cmp esi, edi
mov dword [esp + 0x30], ecx
je 0x4f94dd
mov dword [esi], edi
mov ebx, dword [0x682234]
mov al, byte [ebx + 0x8e4]
test al, al
mov dword [esp + 0x10], edi
mov dword [esp + 0x38], ebx
je 0x4f96d3
mov esi, dword [esp + 0xb0]
push 6
push esi
call dword [0x5f6094]
mov ebp, eax
mov eax, dword [ebx + 0x8ec]
lea edx, [esp + 0x18]
push edx
push ebp
push esi
mov dword [esp + 0x24], 0
mov ecx, dword [eax]
push eax
mov dword [esp + 0x30], ebp
mov dword [esp + 0x2c], edi
call dword [ecx + 0x1c]
test eax, eax
jne 0x4f96c6
mov eax, dword [esp + 0xc0]
test eax, eax
jle 0x4f96a9
jmp 0x4f9550
mov edi, dword [esp + 0x1c]
jmp 0x4f9550
mov eax, dword [esp + 0xbc]
mov ecx, dword [esp + 0x38]
lea ebx, [eax + edi*2]
mov eax, dword [ecx + 0x8ec]
mov edx, dword [eax]
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x38]
push ecx
mov ecx, dword [esp + 0x20]
push ecx
mov ecx, dword [esp + 0xcc]
sub ecx, edi
push ecx
push ebx
push eax
call dword [edx + 0x10]
test eax, eax
jne 0x4f96a9
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4f96a9
mov eax, dword [esp + 0x34]
test dword [esp + 0x18], eax
jne 0x4f95b4
mov ecx, dword [esp + 0x30]
push ebp
push eax
push esi
call fcn.004f93e0
mov edi, eax
test edi, edi
jne 0x4f95b6
mov edi, ebp
mov eax, dword [esp + 0xcc]
xor ebp, ebp
test eax, eax
mov dword [esp + 0x2c], ebp
je 0x4f95d7
lea edx, [esp + 0x3c]
push edx
push esi
call dword [0x5f606c]
mov ebp, dword [esp + 0x40]
push edi
push esi
call dword [0x5f603c]
mov edi, dword [esp + 0xcc]
test edi, edi
je 0x4f95fe
lea eax, [esp + 0x74]
push eax
push esi
call dword [0x5f606c]
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x2c], ecx
mov al, byte [esp + 0xc4]
test al, al
je 0x4f962c
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0xb8]
mov ecx, dword [esp + 0xb4]
push 0
push edx
push ebx
push 0
push 0
push eax
push ecx
push esi
call dword [0x5f6064]
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x24]
push edx
push eax
push ebx
push esi
call dword [0x5f6090]
mov ebx, dword [esp + 0xb4]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0xc8]
add ebx, eax
test ecx, ecx
mov dword [esp + 0xb4], ebx
je 0x4f9688
mov edx, dword [ecx]
add edx, eax
test edi, edi
mov dword [ecx], edx
je 0x4f9688
mov ebx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
sub ebp, ebx
mov eax, 0
sets al
dec eax
and eax, ebp
add eax, ecx
cmp dword [esp + 0x10], eax
jg 0x4f9688
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0xc0]
mov ebp, dword [esp + 0x20]
add eax, edx
cmp eax, ecx
mov dword [esp + 0x1c], eax
jl 0x4f9547
push ebp
push esi
call dword [0x5f603c]
mov eax, dword [esp + 0xcc]
test eax, eax
je 0x4f96c6
mov edx, dword [eax]
mov ecx, dword [esp + 0x10]
add edx, ecx
mov dword [eax], edx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x9c
ret 0x20
mov al, byte [esp + 0xc4]
test al, al
mov edi, dword [esp + 0xc0]
mov ebx, dword [esp + 0xbc]
mov ebp, dword [esp + 0xb0]
je 0x4f9712
mov edx, dword [esp + 0xb8]
mov eax, dword [esp + 0xb4]
push 0
push edi
push ebx
push 0
push 0
push edx
push eax
push ebp
call dword [0x5f6064]
test esi, esi
je 0x4f96b1
lea ecx, [esp + 0x24]
push ecx
push edi
push ebx
push ebp
call dword [0x5f6090]
mov edi, dword [esi]
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0xcc]
add edi, edx
test eax, eax
mov dword [esi], edi
je 0x4f96c6
mov ecx, dword [esp + 0x28]
test ecx, ecx
jl 0x4f96b8
mov dword [esp + 0x10], ecx
jmp 0x4f96b8