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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov ebx, eax
cmp byte [ebx + 0x49], 4
mov eax, dword [ebp + 0x24]
push esi
mov esi, dword [ebx]
push edi
mov edi, dword [esi + 4]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], edi
jne 0x4f1498
mov eax, dword [ebx + 0x44]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 8]
mov ecx, dword [ebx + 0x3c]
test eax, eax
je 0x4f14d8
lea ebx, [ebx]
cmp eax, ebx
je 0x4f14b5
test ecx, ecx
je 0x4f14be
cmp dword [eax + 0x3c], ecx
je 0x4f14be
mov eax, dword [eax + 8]
test eax, eax
jne 0x4f14a8
jmp 0x4f14d8
test eax, eax
je 0x4f14d8
push ebx
mov edi, ecx
call fcn.004e97b7
add esp, 4
test eax, eax
jne 0x4f168d
mov edi, dword [ebp - 0x10]
cmp dword [ebx + 0x10], 0
jne 0x4f153d
mov ecx, dword [esi + 4]
mov eax, dword [ecx + 8]
test eax, eax
je 0x4f150a
mov cl, 0x10
test byte [eax + 0x48], cl
je 0x4f1503
mov edx, dword [eax + 0x18]
cmp edx, dword [ebp + 0xc]
jne 0x4f1503
mov edx, dword [eax + 0x1c]
cmp edx, dword [ebp + 0x10]
jne 0x4f1503
mov byte [eax + 0x49], 0
mov eax, dword [eax + 8]
test eax, eax
jne 0x4f14ea
test byte [ebx + 0x48], 2
je 0x4f153d
mov edx, dword [ebp + 0x10]
test edx, edx
jl 0x4f1540
jg 0x4f151f
cmp dword [ebp + 0xc], 0
jbe 0x4f1540
mov eax, dword [ebp + 0xc]
sub eax, 1
mov ecx, edx
sbb ecx, 0
cmp dword [ebx + 0x18], eax
jne 0x4f1540
cmp dword [ebx + 0x1c], ecx
jne 0x4f1540
mov dword [ebp - 0xc], 0xffffffff
jmp 0x4f1566
mov edx, dword [ebp + 0x10]
cmp dword [ebp + 0x24], 0
jne 0x4f1566
mov eax, dword [ebp + 0x20]
lea ecx, [ebp - 0xc]
push ecx
mov ecx, dword [ebp + 0xc]
push eax
push edx
mov edx, dword [ebp + 8]
push ecx
call fcn.004f0a3a
add esp, 0x10
test eax, eax
jne 0x4f168d
movsx edx, word [ebx + 0x4c]
mov esi, dword [ebx + edx*4 + 0x78]
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ebp + 0x18]
mov edi, dword [edi + 0x50]
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp + 0x14]
push ecx
mov ecx, dword [ebp + 0x10]
push edx
mov edx, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push ecx
push edx
push eax
push edi
mov eax, esi
mov dword [ebp - 0x10], edi
call fcn.004e62d3
add esp, 0x20
mov dword [ebp - 4], eax
test eax, eax
jne 0x4f168d
movsx ecx, word [ebx + 0x4c]
movzx edx, word [ebx + ecx*2 + 0x4e]
lea eax, [ebx + ecx*2 + 0x4e]
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 8], edx
test ecx, ecx
jne 0x4f1635
mov eax, dword [esi + 0x44]
call fcn.004dffeb
test eax, eax
jne 0x4f168d
mov eax, dword [esi + 0x40]
mov ecx, dword [ebp - 8]
movzx edi, byte [eax + ecx*2]
movzx edx, byte [eax + ecx*2 + 1]
lea eax, [eax + ecx*2]
movzx eax, word [esi + 0x14]
shl edi, 8
or edi, edx
and edi, eax
add edi, dword [esi + 0x38]
cmp byte [esi + 5], 0
jne 0x4f1604
mov ecx, dword [ebp - 0x10]
push 4
push edi
push 0xffffffffffffffff
push ecx
call fcn.0040ab34
add esp, 0x10
lea edx, [ebp + 0x24]
push edx
mov eax, edi
mov ecx, esi
call fcn.004e6116
movzx ecx, word [ebp + 0x24]
mov edx, dword [ebp - 8]
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push ecx
push edx
call fcn.004cbf1e
mov eax, dword [ebp - 4]
add esp, 0x10
test eax, eax
jne 0x4f168d
mov edi, dword [ebp - 0x10]
jmp 0x4f1647
jns 0x4f1647
cmp word [esi + 0x12], 0
jbe 0x4f1647
inc word [eax]
movzx eax, word [eax]
mov dword [ebp - 8], eax
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 8]
lea ecx, [ebp - 4]
push ecx
push 0
push edx
push edi
push eax
xor eax, eax
mov ecx, esi
call fcn.004e0f45
mov eax, dword [ebp - 4]
xor ecx, ecx
add esp, 0x14
mov word [ebx + 0x2c], cx
test eax, eax
jne 0x4f168d
cmp byte [esi + 1], cl
je 0x4f168d
and byte [ebx + 0x48], 0xfd
call fcn.004eb778
movsx edx, word [ebx + 0x4c]
mov edx, dword [ebx + edx*4 + 0x78]
xor cl, cl
mov byte [edx + 1], cl
mov byte [ebx + 0x49], cl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret