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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x26c
push esi
mov esi, dword [ebp + 8]
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41a5f2
sub eax, edx
cmp eax, 0x104
jb 0x41a609
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
cmp byte [ebp + 0xc], 0
push edi
je 0x41a634
mov eax, dword [ebp + 0x10]
push eax
push 0x104
lea ecx, [ebp - 0x26c]
push ecx
push esi
call fcn.00417480
lea edi, [ebp - 0x26c]
add esp, 0x10
mov dword [ebp - 4], edi
jmp 0x41a639
mov dword [ebp - 4], esi
mov edi, esi
lea edx, [ebp - 0x64]
push edx
push edi
call fcn.0043b353
add esp, 8
test eax, eax
jne 0x41a6a1
test dword [ebp - 0x5e], 0x4000
je 0x41a6a1
lea eax, [ebp - 0x34]
push eax
push esi
call fcn.0043b353
add esp, 8
test eax, eax
jne 0x41a699
mov eax, dword [ebp - 0x2e]
test eax, 0x4000
je 0x41a684
push 0x1ff
push esi
call fcn.00450f51
add esp, 8
pop edi
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
test eax, 0x8000
je 0x41a699
push 0x1b6
push esi
call fcn.00450f51
add esp, 8
pop edi
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x168]
mov eax, edi
sub edx, edi
jmp 0x41a6b0
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x41a6b0
push ebx
movsx ebx, byte [ebp + 0x10]
lea ecx, [ebp - 0x168]
push ebx
push ecx
call fcn.00438c90
mov esi, eax
add esp, 8
test esi, esi
je 0x41a86c
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41a6e0
sub eax, edx
cmp eax, 3
jbe 0x41a72d
mov dl, byte [ebp + 0x10]
cmp byte [esi + 1], dl
jne 0x41a72d
push ebx
add esi, 2
push esi
call fcn.00438c90
add esp, 8
test eax, eax
je 0x41a86c
inc eax
push ebx
push eax
call fcn.00438c90
add esp, 8
test eax, eax
je 0x41a86c
inc eax
push ebx
push eax
call fcn.00438c90
add esp, 8
mov esi, eax
jmp 0x41a76f
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41a732
sub eax, edx
mov edx, eax
lea eax, [ebp - 0x168]
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41a746
sub eax, edi
cmp edx, eax
je 0x41a76c
mov al, byte [esi - 1]
cmp al, 0x3a
je 0x41a75f
cmp al, byte [ebp + 0x10]
jne 0x41a76c
push ebx
inc esi
push esi
call fcn.00438c90
add esp, 8
mov esi, eax
mov edi, dword [ebp - 4]
test esi, esi
je 0x41a86c
jmp 0x41a780
lea eax, [ebp - 0x168]
mov byte [esi], 0
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41a790
sub eax, edx
je 0x41a852
cmp byte [esi - 1], 0x5c
je 0x41a852
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x168]
push ecx
call fcn.0043b353
add esp, 8
test eax, eax
jne 0x41a7d7
test dword [ebp - 0x5e], 0x4000
je 0x41a8aa
mov dl, byte [ebp + 0x10]
mov byte [esi], dl
jmp 0x41a857
lea eax, [ebp - 0x168]
push eax
call fcn.0043cf73
add esp, 4
test eax, eax
je 0x41a808
lea ecx, [ebp - 0x168]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x41a8aa
test al, 0x10
je 0x41a8aa
lea edx, [ebp - 0x34]
push edx
lea eax, [ebp - 0x168]
push eax
call fcn.0043b353
add esp, 8
test eax, eax
jne 0x41a852
mov eax, dword [ebp - 0x2e]
test eax, 0x4000
je 0x41a837
push 0x1ff
lea ecx, [ebp - 0x168]
push ecx
jmp 0x41a84a
test eax, 0x8000
je 0x41a852
push 0x1b6
lea edx, [ebp - 0x168]
push edx
call fcn.00450f51
add esp, 8
mov al, byte [ebp + 0x10]
mov byte [esi], al
push ebx
inc esi
push esi
call fcn.00438c90
mov esi, eax
add esp, 8
test esi, esi
jne 0x41a780
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x41a87c
test al, 0x10
jne 0x41a889
push edi
call fcn.0043cf73
add esp, 4
test eax, eax
jne 0x41a89d
push 0
push edi
call fcn.00417590
add esp, 8
pop ebx
pop edi
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
push edi
call fcn.00417770
add esp, 4
test al, al
jne 0x41a8b3
pop ebx
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
push 0
push edi
call fcn.00417590
add esp, 8
pop ebx
test al, al
pop edi
setne al
pop esi
mov esp, ebp
pop ebp
ret