Function at 0x41a410
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 0x41a429
mov edx, dword [edi]
test ebx, ebx
je 0x41a455
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 0x41a44f
cmp esi, edx
je 0x41a455
sub esi, 2
cmp word [esi], 0x2e
jne 0x41a442
sub esi, edx
sar esi, 1
jmp 0x41a458
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 0x41a55d
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 0x41a4a2
mov edx, dword [edi]
push eax
push edx
lea ecx, [ebp - 0x1c]
call fcn.00423110
lea ecx, [ebp - 0x4c]
call fcn.0040ecb0
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.0040ecb0
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 0x41a6b4
sub eax, esi
mov ecx, 0xffffffff
cmp eax, 0xffffffff
cmovb ecx, eax
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x41a518
mov eax, dword [edi]
push ecx
lea eax, [eax + esi*2]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00423110
lea ecx, [ebp - 0x34]
call fcn.0040ecb0
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.0040ecb0
jmp 0x41a578
lea eax, [ebp - 0x4c]
cmp eax, edi
je 0x41a578
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x41a56e
mov eax, dword [edi]
push ebx
push eax
lea ecx, [ebp - 0x4c]
call fcn.00423110
lea eax, [ebp - 1]
push eax
mov eax, dword [edi + 0x10]
lea ecx, [ebp - 0x10]
add eax, 4
push eax
call fcn.00416210
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.00411d80
add esp, 0x18
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x41a5d9
test al, 0x10
je 0x41a5a0
mov edi, dword [ebp + 8]
mov edx, esi
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x41a5e1
sub edx, ecx
mov ecx, edi
sar edx, 1
push edx
push esi
call fcn.00423110
test esi, esi
je 0x41a62d
mov ecx, dword [ebp - 8]
mov eax, esi
sub ecx, esi
and ecx, 0xfffffffe
cmp ecx, 0x1000
jb 0x41a623
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41a6b9
push ecx
push esi
call fcn.00433c65
add esp, 8
mov edx, dword [ebp - 0x20]
pop edi
pop esi
pop ebx
cmp edx, 8
jb 0x41a666
mov ecx, dword [ebp - 0x34]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41a65c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41a6b9
push edx
push ecx
call fcn.00433c65
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 0x41a6b0
mov ecx, dword [ebp - 0x4c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41a6a6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41a6b9
push edx
push ecx
call fcn.00433c65
add esp, 8
mov esp, ebp
pop ebp
ret
call fcn.00422ea0
call fcn.0043fb4a
int3