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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov edx, edi
cmp dword [edi + 0x14], 8
mov ebx, dword [edi + 0x10]
jb 0x41a2e9
mov edx, dword [edi]
test ebx, ebx
je 0x41a315
or ecx, 0xffffffff
lea eax, [ebx - 1]
cmp eax, ecx
cmovb ecx, eax
cmp word [edx + ecx*2], 0x2e
lea esi, [edx + ecx*2]
je 0x41a30f
cmp esi, edx
je 0x41a315
sub esi, 2
cmp word [esi], 0x2e
jne 0x41a302
sub esi, edx
sar esi, 1
jmp 0x41a318
or esi, 0xffffffff
xor eax, eax
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 7
mov word [ebp - 0x4c], ax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], 7
mov word [ebp - 0x34], ax
cmp esi, 0xffffffff
je 0x41a41d
mov dword [ebp - 0xc], eax
cmp ebx, esi
mov word [ebp - 0x1c], ax
mov edx, edi
mov eax, esi
mov dword [ebp - 8], 7
cmovb eax, ebx
cmp dword [edi + 0x14], 8
jb 0x41a362
mov edx, dword [edi]
push eax
push edx
lea ecx, [ebp - 0x1c]
call fcn.00422fd0
lea ecx, [ebp - 0x4c]
call fcn.0040ec00
movups xmm0, xmmword [ebp - 0x1c]
xor eax, eax
lea ecx, [ebp - 0x1c]
mov word [ebp - 0x1c], ax
movups xmmword [ebp - 0x4c], xmm0
movq xmm0, qword [ebp - 0xc]
movq qword [ebp - 0x3c], xmm0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 7
call fcn.0040ec00
xor eax, eax
mov dword [ebp - 0xc], 0
mov word [ebp - 0x1c], ax
mov eax, dword [edi + 0x10]
mov dword [ebp - 8], 7
cmp eax, esi
jb 0x41a574
sub eax, esi
mov ecx, 0xffffffff
cmp eax, 0xffffffff
cmovb ecx, eax
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x41a3d8
mov eax, dword [edi]
push ecx
lea eax, [eax + esi*2]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00422fd0
lea ecx, [ebp - 0x34]
call fcn.0040ec00
movups xmm0, xmmword [ebp - 0x1c]
xor eax, eax
lea ecx, [ebp - 0x1c]
mov word [ebp - 0x1c], ax
movups xmmword [ebp - 0x34], xmm0
movq xmm0, qword [ebp - 0xc]
movq qword [ebp - 0x24], xmm0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 7
call fcn.0040ec00
jmp 0x41a438
lea eax, [ebp - 0x4c]
cmp eax, edi
je 0x41a438
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x41a42e
mov eax, dword [edi]
push ebx
push eax
lea ecx, [ebp - 0x4c]
call fcn.00422fd0
lea eax, [ebp - 1]
push eax
mov eax, dword [edi + 0x10]
lea ecx, [ebp - 0x10]
add eax, 4
push eax
call fcn.00416160
mov ebx, dword [ebp - 0xc]
xor edi, edi
mov esi, dword [ebp - 0x10]
sub ebx, esi
sar ebx, 1
nop word [eax + eax]
cmp dword [ebp - 0x20], 8
lea ecx, [ebp - 0x34]
lea eax, [ebp - 0x4c]
cmovae ecx, dword [ebp - 0x34]
inc edi
cmp dword [ebp - 0x38], 8
push ecx
cmovae eax, dword [ebp - 0x4c]
push edi
push eax
push 0x46fce8
push ebx
push esi
call fcn.00411cd0
add esp, 0x18
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x41a499
test al, 0x10
je 0x41a460
mov edi, dword [ebp + 8]
mov edx, esi
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x41a4a1
sub edx, ecx
mov ecx, edi
sar edx, 1
push edx
push esi
call fcn.00422fd0
test esi, esi
je 0x41a4ed
mov ecx, dword [ebp - 8]
mov eax, esi
sub ecx, esi
and ecx, 0xfffffffe
cmp ecx, 0x1000
jb 0x41a4e3
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41a579
push ecx
push esi
call fcn.00433b05
add esp, 8
mov edx, dword [ebp - 0x20]
pop edi
pop esi
pop ebx
cmp edx, 8
jb 0x41a526
mov ecx, dword [ebp - 0x34]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41a51c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41a579
push edx
push ecx
call fcn.00433b05
add esp, 8
mov edx, dword [ebp - 0x38]
xor eax, eax
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 7
mov word [ebp - 0x34], ax
cmp edx, 8
jb 0x41a570
mov ecx, dword [ebp - 0x4c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41a566
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41a579
push edx
push ecx
call fcn.00433b05
add esp, 8
mov esp, ebp
pop ebp
ret
call fcn.00422d60
call fcn.0043f9ea
int3