Function at 0x100417e0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x128
mov eax, dword [0x11ad127c]
xor eax, esp
mov dword [esp + 0x124], eax
push esi
push edi
mov eax, ecx
mov dword [esp + 0x18], edx
xor edi, edi
mov dword [esp + 0x10], eax
xor esi, esi
mov dword [esp + 0x30], edi
push eax
mov dword [esp + 0x30], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x18], esi
mov dword [esp + 0x24], esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10041cbd
test al, 0x50
jne 0x10041cbd
call fcn.100415d0
cmp eax, 1
je 0x10041848
lea edi, [esi + 0x7e]
jmp 0x10041c96
push 0
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x44]
push eax
push 0
push 2
push 0x400
push dword [esp + 0x34]
push 1
call dword [0x11d22050]
mov esi, eax
test esi, esi
jne 0x1004188b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x10041c96
mov ecx, 0x23f0
call fcn.10043950
test eax, eax
jne 0x10041b57
mov ecx, dword [esp + 0x10]
call fcn.1003fff0
test eax, eax
je 0x10041b57
mov eax, dword [0x11d22060]
xorps xmm0, xmm0
movaps xmmword [esp + 0x100], xmm0
movq qword [esp + 0x110], xmm0
mov dword [esp + 0x118], edi
mov dword [esp + 0x1c], edi
test eax, eax
jne 0x100418ef
xor edx, edx
mov ecx, 0x1046a560
call fcn.1003f920
mov dword [0x11d22060], eax
test eax, eax
je 0x100419eb
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp dword [0x11d22074], edi
jne 0x10041917
push 0x1046a5f0
push eax
call esi
mov dword [0x11d22074], eax
test eax, eax
je 0x100419eb
mov eax, dword [0x11d22060]
cmp dword [0x11d22078], edi
jne 0x10041939
push 0x1046a600
push eax
call esi
mov dword [0x11d22078], eax
test eax, eax
je 0x100419eb
mov eax, dword [0x11d22060]
cmp dword [0x11d22080], edi
jne 0x1004195b
push 0x1046a610
push eax
call esi
mov dword [0x11d22080], eax
test eax, eax
je 0x100419eb
mov eax, dword [0x11d22060]
cmp dword [0x11d22084], edi
jne 0x10041974
push 0x1046a630
push eax
call esi
mov dword [0x11d22084], eax
test eax, eax
je 0x100419eb
push 0x80000000
push 0
push 0
call dword [0x11d22074]
mov esi, eax
test esi, esi
je 0x100419e1
push 4
push 0x1046a650
push esi
call dword [0x11d22078]
mov dword [esp + 0x24], eax
test eax, eax
je 0x100419da
lea ecx, [esp + 0x100]
push ecx
push eax
call dword [0x11d22080]
test eax, eax
je case.default.0x100419c1
mov eax, dword [esp + 0x104]
add eax, 0xfffffffc
cmp eax, 3
ja case.default.0x100419c1
jmp dword [eax*4 + 0x10041ce4]
mov dword [esp + 0x1c], 1
push dword [esp + 0x24]
call dword [0x11d22084]
push esi
call dword [0x11d22084]
cmp dword [esp + 0x1c], edi
jne 0x10041b57
mov ecx, dword [esp + 0x14]
xor edi, edi
mov eax, dword [esp + 0x20]
mov dword [esp + 0x10], ecx
lea ecx, [esp + 0x1c]
push ecx
push edi
push edi
push 6
push eax
mov dword [esp + 0x38], eax
call dword [0x11d2204c]
test eax, eax
jne 0x10041a34
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov esi, 1
xor edi, edi
jmp 0x10041c96
push dword [esp + 0x1c]
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
jne 0x10041a68
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov esi, 1
xor edi, edi
jmp 0x10041c96
lea eax, [esp + 0x1c]
push eax
push esi
push 0
push 6
push dword [esp + 0x34]
call dword [0x11d2204c]
test eax, eax
jne 0x10041aa2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov esi, 1
xor edi, edi
jmp 0x10041c96
mov eax, dword [esi + 4]
mov ecx, dword [esi + 8]
mov dword [esp + 0xa8], eax
mov dword [esp + 0xac], ecx
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x10]
push 0
mov dword [esp + 0x98], eax
lea eax, [esp + 0x94]
push eax
push 0xb0000
push 0
push 0x10001
push dword [esp + 0x24]
mov dword [esp + 0xb0], ecx
call dword [0x11d22048]
mov dword [esp + 0x10], eax
test eax, eax
jne 0x10041b14
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov esi, 1
xor edi, edi
jmp 0x10041c96
cmp dword [esp + 0x18], edi
je 0x10041b30
mov ecx, eax
call fcn.10041d00
mov ecx, dword [esp + 0x18]
push esi
mov dword [ecx], eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x10041b39
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor edi, edi
mov eax, dword [esp + 0x10]
push eax
call dword [0x11d22044]
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov esi, 1
xor edi, edi
jmp 0x10041c96
mov eax, dword [esp + 0x10]
xorps xmm0, xmm0
mov dword [esp + 0x6c], eax
mov ecx, 0x23f0
lea eax, [esp + 0x68]
movlpd qword [esp + 0x5c], xmm0
or dword [esp + 0x5c], 0x1000
movlpd qword [esp + 0x70], xmm0
movlpd qword [esp + 0x38], xmm0
movlpd qword [esp + 0x54], xmm0
mov dword [esp + 0x64], edi
mov dword [esp + 0x68], 0x10
mov dword [esp + 0x34], 0x34
mov dword [esp + 0x50], 1
mov dword [esp + 0x40], 2
mov dword [esp + 0x44], 1
mov dword [esp + 0x48], 1
mov dword [esp + 0x4c], eax
call fcn.10043950
mov edx, dword [esp + 0x14]
push dword [esp + 0x18]
push ecx
lea ecx, [esp + 0x3c]
test eax, eax
jne 0x10041bf5
call fcn.10041460
mov esi, eax
test esi, esi
jne 0x10041c96
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x10041c96
xorps xmm0, xmm0
mov dword [esp + 0x94], edi
lea eax, [esp + 0x80]
movlpd qword [esp + 0x8c], xmm0
mov dword [esp + 0x80], 0x18
mov dword [esp + 0x88], 3
mov dword [esp + 0x84], edi
mov dword [esp + 0x6c], eax
call fcn.10041460
mov esi, eax
test esi, esi
jne 0x10041c96
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
mov edi, 1
mov eax, dword [esp + 0x64]
cmp dword [eax + 0xc], edi
jb 0x10041c92
push dword [esp + 0x18]
mov dword [esp + 0x58], 0
mov dword [esp + 0x54], 1
mov dword [eax + 4], edi
mov edx, dword [esp + 0x18]
push ecx
lea ecx, [esp + 0x3c]
call fcn.10041460
mov esi, eax
test esi, esi
jne 0x10041c92
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
inc edi
mov eax, dword [esp + 0x64]
cmp edi, dword [eax + 0xc]
jbe 0x10041c53
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x10041ca7
push 0
push eax
call dword [0x11d22040]
mov eax, dword [esp + 0x20]
test eax, eax
je 0x10041cb6
push eax
call dword [0x11d2203c]
test esi, esi
jne 0x10041cc4
push edi
jmp 0x10041cc6
mov edi, 2
jmp 0x10041c96
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [esp + 0x12c]
mov eax, esi
pop edi
pop esi
xor ecx, esp
call fcn.1045066c
mov esp, ebp
pop ebp
ret