Function at 0x4e3560
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 0x4e391c
mov eax, dword [esi + 0x20]
test dword [eax + 4], ebx
je 0x4e391c
call fcn.004e5410
xor ebp, ebp
cmp eax, ebp
jne 0x4e391e
mov eax, dword [esi + 0x28]
or edi, 0xffffffff
cmp eax, ebp
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
je 0x4e35ee
cmp dword [eax + 0x10], 0x1f
jae 0x4e35ee
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 + 0x1c], eax
push 0x927c
lea eax, [ebx + 3]
mov ecx, esi
mov dword [esp + 0x1c], edx
call fcn.004e53d0
cmp eax, ebp
je 0x4e35ee
mov ecx, dword [esp + 0x18]
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 0x4e376d
jmp 0x4e3695
mov ebx, 0xfffffffe
mov eax, dword [esi + 0x20]
test dword [eax + edi*8 + 4], ebx
jne 0x4e36b3
cmp edi, dword [esp + 0x18]
jne 0x4e375d
cmp dword [esp + 0x1c], 5
jne 0x4e375d
mov ebp, dword [esi + 0x1c]
mov ebx, dword [esp + edi*4 + 0x28]
shr ebp, 1
cmp edi, dword [esp + 0x18]
lea eax, [esp + edi*4 + 0x28]
mov byte [esp + 0x17], 0
jne 0x4e36fb
lea ecx, [esp + 0x17]
push ecx
push eax
mov eax, esi
call fcn.004e5550
test eax, eax
jne 0x4e391e
cmp byte [esp + 0x17], al
je 0x4e36fb
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x94]
push eax
push edi
call fcn.004e4570
jmp 0x4e370e
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x94]
push edx
push edi
call fcn.004e58c0
test eax, eax
jne 0x4e391e
mov edx, dword [esp + edi*4 + 0x90]
test edx, edx
je 0x4e375d
mov ecx, dword [esi + 0x1c]
lea eax, [edx + 0xc]
shr ecx, 1
cmp eax, ecx
jae 0x4e375d
mov eax, dword [esi + 0x18]
mov ecx, ebp
sub ecx, ebx
add eax, edx
mov dword [eax + 8], ecx
movzx ecx, word [eax + 2]
cmp cx, 7
jne 0x4e3752
mov ecx, dword [esi + 0x1c]
shr ecx, 1
sub ecx, ebp
cmp ecx, 4
jbe 0x4e3752
mov dword [eax + 4], ecx
mov dword [esp + edi*4 + 0x90], 0
mov edx, dword [esi + 0x24]
add edi, 1
shr edx, 1
cmp edi, edx
jb 0x4e3690
mov eax, dword [esi + 0x10]
test eax, eax
mov dword [esp + 0x20], eax
je 0x4e391c
mov ebx, dword [esi + 0x14]
test ebx, ebx
mov dword [esp + 0x18], ebx
je 0x4e391c
mov eax, dword [esi + 0x1c]
shr eax, 1
sub eax, dword [esp + 0x8c]
mov dword [esp + 0x24], eax
mov eax, dword [esi + 0x1c]
mov ebp, eax
shr ebp, 1
lea edi, [ebx + ebp]
cmp edi, 0x7fffffff
jbe 0x4e37d8
mov eax, dword [esi + 0x18]
test eax, eax
je 0x4e37c8
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 0x4e37e7
mov eax, dword [esi + 0x18]
jmp 0x4e3883
test eax, eax
je 0x4e380b
mov eax, dword [esi + 0x18]
push edi
push eax
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 0x4e3883
mov ebx, 1
cmp edi, ebx
jb 0x4e381a
add ebx, ebx
cmp ebx, edi
jbe 0x4e3814
mov eax, dword [esi + 0x18]
mov ecx, ebp
test ecx, ecx
mov dword [esp + 0x1c], ecx
fild dword [esp + 0x1c]
jge 0x4e3831
fadd dword [0x6c0a38]
fstp dword [esp + 0x1c]
mov ecx, dword [esp + 0x1c]
shr ecx, 0x17
and ecx, 0xff
sub ecx, 0x7f
js 0x4e3850
mov edx, 1
shl edx, cl
jmp 0x4e3852
xor edx, edx
cmp edx, ebp
jae 0x4e3858
add edx, edx
cmp edx, ebx
je 0x4e3871
push ebx
push eax
call fcn.0045d790
add esp, 8
test eax, eax
mov dword [esi + 0x18], eax
je 0x4e37c8
mov edx, dword [esi + 0x1c]
mov ebx, dword [esp + 0x18]
and edx, 1
lea ecx, [edi + edi]
or edx, ecx
mov dword [esi + 0x1c], edx
test eax, eax
je 0x4e37c8
mov edx, dword [esp + 0x20]
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 0x4e390a
mov eax, dword [esi + 0x1c]
test al, 1
jne 0x4e37c8
shr eax, 1
lea ecx, [eax - 1]
test eax, ecx
jne 0x4e38da
add eax, eax
jne 0x4e38c2
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 0x4e37c8
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 0x4e37c8
mov eax, dword [esi + 0x18]
mov ecx, dword [esp + 0xf4]
mov edx, dword [esp + 0x24]
mov dword [ecx + eax + 8], edx
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xec
ret