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

Disassembly:
sub esp, 0xec
push ebx
push ebp
push esi
mov esi, eax
mov ebx, 0xfffffffe
test dword [esi + 0x24], ebx
push edi
je 0x4e19b1
mov eax, dword [esi + 0x20]
test dword [eax + 4], ebx
je 0x4e19b1
mov eax, esi
call fcn.004e4080
xor ebp, ebp
cmp eax, ebp
jne 0x4e19b3
mov eax, dword [esi + 0x28]
or edi, 0xffffffff
cmp eax, ebp
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
je 0x4e1640
cmp dword [eax + 0x10], 0x1f
jae 0x4e1640
mov ecx, eax
mov ecx, dword [ecx + 0x10]
lea eax, [ecx*8]
sub eax, ecx
add eax, eax
mov edx, dword [eax + eax + 0x6a1558]
add eax, eax
mov eax, dword [eax + 0x6a1550]
mov dword [esp + 0x20], eax
push 0x927c
lea eax, [ebx + 3]
mov ecx, esi
mov dword [esp + 0x20], edx
call fcn.004e4040
cmp eax, ebp
je 0x4e1640
mov ecx, dword [esp + 0x1c]
mov dword [eax + 0x10], ecx
push 0x64
lea edx, [esp + 0x98]
push ebp
push edx
mov dword [esp + 0x9c], ebp
call fcn.0060c930
mov eax, edi
add esp, 0xc
xor edi, edi
test dword [esi + 0x24], ebx
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], eax
mov dword [esp + 0x28], ebp
jbe 0x4e17f2
jmp 0x4e16e6
mov ebx, 0xfffffffe
mov eax, dword [esi + 0x20]
test dword [eax + edi*8 + 4], ebx
jne 0x4e1704
cmp edi, dword [esp + 0x1c]
jne 0x4e17e2
cmp dword [esp + 0x20], 5
jne 0x4e17e2
mov ebx, dword [esi + 0x1c]
mov ebp, dword [esp + edi*4 + 0x28]
shr ebx, 1
cmp edi, dword [esp + 0x1c]
lea eax, [esp + edi*4 + 0x28]
mov byte [esp + 0x1b], 1
jne 0x4e1735
lea ecx, [esp + 0x1b]
push ecx
push eax
call fcn.004e41f0
test eax, eax
jne 0x4e19b3
cmp byte [esp + 0x1b], al
je 0x4e174a
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x94]
push eax
push edi
call fcn.004e4570
jmp 0x4e175d
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x94]
push edx
push edi
call fcn.004e58c0
test eax, eax
jne 0x4e19b3
mov eax, dword [esp + edi*4 + 0x90]
test eax, eax
je 0x4e17e2
mov ecx, dword [esi + 0x1c]
add eax, 0xc
shr ecx, 1
cmp eax, ecx
jae 0x4e17e2
mov edx, ebx
sub edx, ebp
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], edx
call fcn.004dc410
mov ebp, dword [esi + 0x18]
add ebp, dword [esp + edi*4 + 0x90]
mov eax, dword [esp + 0x14]
movzx ecx, word [ebp + 2]
mov dword [ebp + 8], eax
lea eax, [esp + 0x14]
mov dword [esp + 0x14], ecx
call fcn.004dc400
cmp word [esp + 0x14], 7
jne 0x4e17d7
mov eax, dword [esi + 0x1c]
shr eax, 1
sub eax, ebx
cmp eax, 4
mov dword [esp + 0x14], eax
jbe 0x4e17d7
lea ecx, [esp + 0x14]
call fcn.004dc410
mov edx, dword [esp + 0x14]
mov dword [ebp + 4], edx
mov dword [esp + edi*4 + 0x90], 0
mov eax, dword [esi + 0x24]
add edi, 1
shr eax, 1
cmp edi, eax
jb 0x4e16e1
mov eax, dword [esi + 0x10]
test eax, eax
mov dword [esp + 0x24], eax
je 0x4e19b1
mov ebx, dword [esi + 0x14]
test ebx, ebx
mov dword [esp + 0x1c], ebx
je 0x4e19b1
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x1c]
mov ebp, eax
shr ecx, 1
sub ecx, dword [esp + 0x8c]
shr ebp, 1
lea edi, [ebx + ebp]
cmp edi, 0x7fffffff
mov dword [esp + 0x14], ecx
jbe 0x4e185d
mov eax, dword [esi + 0x18]
test eax, eax
je 0x4e184d
push eax
call fcn.0045da90
add esp, 4
and dword [esi + 0x1c], 1
mov dword [esi + 0x18], 0
mov eax, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xec
ret
and eax, 1
cmp edi, ebp
jne 0x4e186c
mov eax, dword [esi + 0x18]
jmp 0x4e190f
test eax, eax
je 0x4e1890
mov edx, dword [esi + 0x18]
push edi
push edx
call fcn.0045d790
mov ecx, dword [esi + 0x1c]
and ecx, 1
lea edx, [edi + edi]
add esp, 8
or ecx, edx
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], ecx
jmp 0x4e190f
mov ebx, 1
cmp edi, ebx
jb 0x4e18a6
lea esp, [esp]
add ebx, ebx
cmp ebx, edi
jbe 0x4e18a0
mov eax, dword [esi + 0x18]
mov ecx, ebp
test ecx, ecx
mov dword [esp + 0x20], ecx
fild dword [esp + 0x20]
jge 0x4e18bd
fadd dword [0x6c0a38]
fstp dword [esp + 0x20]
mov ecx, dword [esp + 0x20]
shr ecx, 0x17
and ecx, 0xff
sub ecx, 0x7f
js 0x4e18dc
mov edx, 1
shl edx, cl
jmp 0x4e18de
xor edx, edx
cmp edx, ebp
jae 0x4e18e4
add edx, edx
cmp edx, ebx
je 0x4e18fd
push ebx
push eax
call fcn.0045d790
add esp, 8
test eax, eax
mov dword [esi + 0x18], eax
je 0x4e184d
mov edx, dword [esi + 0x1c]
mov ebx, dword [esp + 0x1c]
and edx, 1
lea ecx, [edi + edi]
or edx, ecx
mov dword [esi + 0x1c], edx
test eax, eax
je 0x4e184d
mov edx, dword [esp + 0x24]
mov eax, dword [esi + 0x18]
push ebx
push edx
add eax, ebp
push eax
call fcn.0060d1b0
add esp, 0xc
test byte [esi + 0x1c], 2
je 0x4e1996
mov eax, dword [esi + 0x1c]
test al, 1
jne 0x4e184d
shr eax, 1
lea ecx, [eax - 1]
test eax, ecx
jne 0x4e1966
add eax, eax
jne 0x4e194e
mov eax, 1
mov edx, dword [esi + 0x18]
push eax
push edx
call fcn.0045d790
add esp, 8
test eax, eax
mov dword [esi + 0x18], eax
je 0x4e184d
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x18]
shr eax, 1
mov byte [eax + ecx], 0
mov ecx, dword [esi + 0x1c]
mov edx, dword [esi + 0x18]
mov eax, ecx
and eax, 0xfffffffe
add eax, 2
and ecx, 1
xor eax, ecx
mov dword [esi + 0x1c], eax
shr eax, 1
lea eax, [eax + edx - 1]
test eax, eax
je 0x4e184d
lea ecx, [esp + 0x14]
call fcn.004dc410
mov eax, dword [esi + 0x18]
mov ecx, dword [esp + 0xf4]
mov edx, dword [esp + 0x14]
mov dword [ecx + eax + 8], edx
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xec
ret