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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x2a4
mov ebp, dword [esp + 0x2bc]
mov ebx, dword [esp + 0x2b8]
mov dword [esp + 0x3c], 0
mov esi, ecx
mov edi, edx
mov dword [esp + 0x4c], 0
mov word [esp + 0x50], 0
mov dword [esp + 0x40], 7
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x30], 1
mov dword [esp + 0x34], 0
lea ecx, [esp + 0xc]
mov eax, ebp
or eax, 0x2000000
mov dword [esp + 0x38], eax
lea eax, [esp + 0x30]
push eax
push ebx
call fcn.0048ea90
add esp, 8
movzx eax, byte [esp + 0xc]
lea ecx, [eax - 1]
cmp ecx, 3
jae 0x491295
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov dword [esi + 0xc], ecx
mov dword [esi + 8], eax
mov dword [esi + 4], 0
mov dword [esi], 2
jmp 0x49147f
test eax, eax
jne 0x491373
mov eax, dword [esp + 0x10]
cmp eax, 5
je 0x4912ab
cmp eax, 0x20
jne 0x491275
mov ecx, dword [esp + 0xc]
mov edx, edi
mov dword [esp], eax
mov dword [esp + 4], ecx
lea ecx, [esp + 0x18]
push ebx
call fcn.0048e3d0
add esp, 4
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov ecx, edx
neg ecx
mov ecx, dword [esp + 0x20]
jo 0x49130d
mov dword [esp + 0x54], edx
mov dword [esp + 0x5c], ecx
lea edi, [esp + 0x54]
lea ecx, [esp + 0x24]
mov dword [esp + 0x58], eax
mov edx, edi
push 1
call fcn.0048f480
add esp, 4
mov ecx, dword [esp + 0x24]
mov eax, ecx
neg eax
jno 0x49148a
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
cmp byte [esp + 4], 3
mov dword [esi + 8], eax
mov dword [esi + 0xc], ecx
mov dword [esi + 4], 0
mov dword [esi], 2
jb 0x49147f
mov eax, dword [esp]
mov edi, dword [eax + 4]
mov esi, dword [eax]
mov eax, dword [edi]
test eax, eax
je 0x49133f
push esi
call eax
add esp, 4
cmp dword [edi + 4], 0
je 0x49135d
cmp dword [edi + 8], 9
jb 0x49134e
mov esi, dword [esi - 4]
push esi
push 0
push dword [0x903200]
call dword [sym.imp.kernel32.dll_HeapFree]
push dword [esp]
push 0
push dword [0x903200]
call dword [sym.imp.kernel32.dll_HeapFree]
jmp 0x49147f
mov edi, dword [esp + 0x10]
xorps xmm0, xmm0
lea eax, [esp + 0x54]
mov dword [esp + 0x84], 0
movups xmmword [esp + 0x74], xmm0
movups xmmword [esp + 0x64], xmm0
movups xmmword [esp + 0x54], xmm0
push eax
push edi
call dword [sym.imp.kernel32.dll_GetFileInformationByHandle]
test eax, eax
je 0x49145e
mov ecx, dword [esp + 0x54]
xor eax, eax
test ecx, 0x400
je 0x4913f0
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
lea eax, [esp + 0x18]
push 8
push eax
push 9
push edi
call dword [sym.imp.kernel32.dll_GetFileInformationByHandleEx]
test eax, eax
je 0x49145e
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x54]
shl eax, 0x15
sar eax, 0x1f
and eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x80]
mov dword [esi + 4], 0
mov dword [esi], 1
movups xmm0, xmmword [esp + 0x58]
movsd xmm1, qword [esp + 0x68]
mov ebx, dword [esp + 0x78]
mov dword [esi + 0xc], edx
mov edx, dword [esp + 0x84]
mov dword [esi + 8], edx
mov edx, dword [esp + 0x70]
mov dword [esi + 0x10], 1
mov dword [esi + 0x14], edx
mov edx, dword [esp + 0x7c]
mov dword [esi + 0x18], 1
mov dword [esi + 0x1c], edx
mov edx, dword [esp + 0x74]
movups xmmword [esi + 0x20], xmm0
movsd qword [esi + 0x30], xmm1
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], edx
mov dword [esi + 0x40], 0
mov dword [esi + 0x4c], ecx
mov dword [esi + 0x50], eax
jmp 0x491478
call dword [sym.imp.kernel32.dll_GetLastError]
mov byte [esi + 8], 0
mov dword [esi + 0xc], eax
mov dword [esi + 4], 0
mov dword [esi], 2
push edi
call dword [sym.imp.kernel32.dll_CloseHandle]
add esp, 0x2a4
pop esi
pop edi
pop ebx
pop ebp
ret
mov ebx, dword [esp + 0x28]
mov dword [esp + 8], ecx
push 0x250
push 0
push edi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push edi
push ebx
call dword [sym.imp.kernel32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x491587
mov dword [esp + 0x14], ebx
push eax
call dword [sym.imp.kernel32.dll_FindClose]
mov ebx, dword [esp + 0x54]
movups xmm0, xmmword [esp + 0x58]
movsd xmm1, qword [esp + 0x68]
mov edx, dword [esp + 0x74]
mov edi, dword [esp + 0x70]
mov eax, ebx
shl eax, 0x15
sar eax, 0x1f
and eax, dword [esp + 0x78]
test ebp, ebp
jne 0x491525
mov ebp, ebx
mov ecx, eax
shr ebp, 0xa
shr ecx, 0x1d
and ecx, ebp
test cl, 1
je 0x491525
mov eax, dword [esp + 4]
cmp dword [esp + 8], 0
mov dword [esi + 8], eax
mov eax, dword [esp]
mov dword [esi + 0xc], eax
mov eax, dword [esp + 0x14]
mov dword [esi + 4], 0
mov dword [esi], 2
je 0x49147f
push eax
jmp 0x491360
cmp dword [esp + 8], 0
mov dword [esi + 4], 0
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x18], 0
movups xmmword [esi + 0x20], xmm0
movlps qword [esi + 0x30], xmm1
mov dword [esi + 0x38], edx
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], 0
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x50], eax
je 0x491574
push dword [esp + 0x14]
push 0
push dword [0x903200]
call dword [sym.imp.kernel32.dll_HeapFree]
cmp byte [esp + 4], 3
mov eax, dword [esp]
jae 0x49132e
jmp 0x49147f
mov eax, dword [esp + 4]
cmp dword [esp + 8], 0
mov ecx, dword [esp]
mov dword [esi + 8], eax
mov dword [esi + 0xc], ecx
mov dword [esi + 4], 0
mov dword [esi], 2
je 0x49147f
push ebx
jmp 0x491360