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

Disassembly:
sub esp, 0x58
push ebx
push ebp
push esi
or esi, 0xffffffff
mov ebx, ecx
push edi
mov dword [esp + 0x24], esi
call fcn.004dd153
cmp dword [ebx + 0x1a8], 0
jne 0x4e1734
lea ebp, [ebx + 0x10]
mov ecx, ebp
call fcn.004d1e58
test al, al
je 0x4e1734
inc dword [ebx + 0x1a8]
mov ecx, ebp
call fcn.004d1e60
test al, al
jne 0x4e172e
mov ecx, ebp
call fcn.004d1e64
mov ecx, ebp
mov byte [esp + 0x13], al
mov byte [esp + 0x30], 0
call fcn.004d275f
or dword [esp + 0x1c], esi
xor ecx, ecx
or dword [esp + 0x18], esi
mov dword [esp + 0x34], eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x2c], ecx
test eax, eax
jle 0x4e1712
dec eax
xor esi, esi
mov dword [esp + 0x3c], eax
inc esi
mov ecx, ebp
call fcn.004d1f16
mov ecx, ebp
mov dword [esp + 0x38], eax
call fcn.004d1973
mov dword [esp + 0x28], eax
cmp dword [eax], esi
jne 0x4e1545
push 0
push eax
push 0x420
jmp 0x4e15be
cmp dword [eax], 3
jne 0x4e15b6
movaps xmm0, xmmword [0x56f470]
lea esi, [esp + 0x40]
mov eax, dword [eax + 4]
sub esp, 0x28
and dword [esp + 0x88], 0
movups xmmword [esp + 0x68], xmm0
mov dword [esp + 0x8c], eax
xorps xmm0, xmm0
push 0xa
pop ecx
mov edi, esp
movups xmmword [esp + 0x78], xmm0
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
call fcn.004e04f3
mov edi, dword [esp + 0x28]
mov cl, byte [edi + 0x10]
test cl, cl
jne 0x4e159a
or dword [esp + 0x1c], 0xffffffff
or dword [esp + 0x18], 0xffffffff
xor eax, eax
test cl, cl
cmovne eax, dword [esp + 0x14]
mov dword [esp + 0x14], eax
xor eax, eax
test cl, cl
cmovne eax, dword [esp + 0x20]
mov dword [esp + 0x20], eax
jmp 0x4e15de
push 0
push eax
push 0x820
lea ecx, [esp + 0x4c]
call fcn.004db6f5
sub esp, 0x28
mov esi, eax
push 0xa
pop ecx
mov edi, esp
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
call fcn.004e04f3
mov edi, dword [esp + 0x28]
mov ecx, ebp
call fcn.004d2049
cmp dword [edi], 3
je 0x4e15fd
push dword [edi + 4]
mov ecx, ebx
call fcn.004dffa1
mov eax, dword [edi + 4]
mov dword [esp + 0x24], eax
jmp 0x4e1601
mov eax, dword [esp + 0x24]
xor edx, edx
inc edx
push 0x20
pop esi
cmp dword [edi], edx
jne 0x4e166e
mov edx, dword [edi + 0xc]
add eax, edx
mov ecx, dword [edi + 4]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x14]
push 0x21
pop esi
test eax, eax
jle 0x4e165a
cmp ecx, dword [esp + 0x18]
je 0x4e1643
mov eax, dword [esp + 0x18]
lea ebp, [ebx + 0x10]
add eax, dword [esp + 0x20]
cmp ecx, eax
je 0x4e163f
mov eax, ecx
mov dword [esp + 0x1c], eax
jmp 0x4e1660
mov eax, dword [esp + 0x14]
add eax, edx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], eax
lea ebp, [ebx + 0x10]
add eax, dword [esp + 0x1c]
mov dword [esp + 0x24], eax
jmp 0x4e1668
mov eax, ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], edx
jmp 0x4e168a
cmp dword [edi], 0
jne 0x4e168a
or dword [esp + 0x1c], 0xffffffff
and dword [esp + 0x14], 0
or dword [esp + 0x18], 0xffffffff
and dword [esp + 0x20], 0
push 0x22
pop esi
xor eax, eax
inc eax
cmp dword [esp + 0x34], eax
jle 0x4e1699
or esi, 0x80
mov ecx, ebp
call fcn.004d1f16
mov ecx, dword [esp + 0x30]
sub eax, dword [esp + 0x38]
push 1
pop edx
movzx ecx, cl
cmovne ecx, edx
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x30], ecx
cmp dword [esp + 0x2c], edx
jne 0x4e16cf
or esi, 0x100
test cl, cl
je 0x4e16cf
or esi, 0x1000
push 0
push dword [edi + 8]
lea ecx, [esp + 0x48]
push eax
push dword [edi + 0xc]
push dword [edi + 4]
push esi
call fcn.004db72e
sub esp, 0x28
mov esi, eax
push 0xa
pop ecx
mov edi, esp
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
call fcn.004e04f3
mov edi, dword [esp + 0x2c]
inc edi
push 1
mov dword [esp + 0x30], edi
pop esi
cmp edi, dword [esp + 0x34]
jl 0x4e1521
mov esi, dword [esp + 0x24]
mov ecx, ebp
call fcn.004d1e64
mov byte [esp + 0x3c], al
cmp byte [esp + 0x13], al
je 0x4e172e
push dword [esp + 0x3c]
mov ecx, ebx
call fcn.004e059a
dec dword [ebx + 0x1a8]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x58
ret