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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4b4a2b
mov eax, dword fs:[0]
push eax
sub esp, 0x370
mov eax, dword [0x4f4930]
xor eax, esp
mov dword [esp + 0x368], eax
push ebx
push esi
push edi
mov eax, dword [0x4f4930]
xor eax, esp
push eax
lea eax, [esp + 0x380]
mov dword fs:[0], eax
mov ebx, ecx
lea ecx, [esp + 0x24c]
mov dword [esp + 0x18], ebx
mov esi, edx
call fcn.0041bda0
lea ecx, [esp + 0x124]
mov dword [esp + 0x388], 0
call fcn.0041bda0
lea ecx, [esp + 0x124]
push ecx
mov byte [esp + 0x38c], 1
mov eax, dword [ebx]
mov eax, dword [eax + 0x1c]
lea edx, [esp + 0x250]
push edx
push esi
mov ecx, ebx
call eax
test al, al
jne 0x417e34
mov esi, 0x4d4d70
mov dword [esp + 0x124], esi
cmp byte [esp + 0x240], al
jne 0x417e01
mov eax, dword [esp + 0x12c]
lea ecx, [esp + 0x130]
cmp eax, ecx
je 0x417e01
push eax
call fcn.00470027
add esp, 4
cmp byte [esp + 0x368], 0
mov dword [esp + 0x24c], esi
jne 0x417e2d
mov eax, dword [esp + 0x254]
lea edx, [esp + 0x258]
cmp eax, edx
je 0x417e2d
push eax
call fcn.00470027
add esp, 4
xor al, al
jmp 0x41803a
cmp byte [esp + 0x368], 0
lea eax, [esp + 0x258]
jne 0x417e4c
mov eax, dword [esp + 0x254]
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x417f56
shr eax, 4
not al
and al, 1
je 0x417f56
cmp byte [ebx + 0x9a2], 0
lea edx, [esp + 0x3c]
sete al
movzx ecx, al
push ecx
push edx
call fcn.00425670
mov byte [esp + 0x388], 2
cmp byte [esp + 0x368], 0
lea eax, [esp + 0x258]
jne 0x417ea4
mov eax, dword [esp + 0x254]
add eax, 4
push eax
lea edi, [esp + 0x40]
call fcn.00425020
xor esi, esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], fcn.00470104
mov dword [esp + 0x30], fcn.00470421
mov dword [esp + 0x34], fcn.00470027
mov dword [esp + 0x38], esi
mov eax, edi
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x38c], 3
call fcn.004259d0
xor edi, edi
cmp dword [esp + 0x38], esi
jle 0x417f33
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x14], ecx
jmp 0x417f07
xor esi, esi
cmp edi, esi
jl 0x417f17
cmp edi, dword [esp + 0x38]
jge 0x417f17
mov ebx, dword [esp + 0x14]
jmp 0x417f19
xor ebx, ebx
mov esi, dword [esp + 0x18]
call fcn.00418170
add dword [esp + 0x14], 0x3a4
inc edi
cmp edi, dword [esp + 0x38]
jl 0x417f05
mov ebx, esi
lea esi, [esp + 0x1c]
mov byte [esp + 0x388], 2
call fcn.004199c0
lea edx, [esp + 0x3c]
push edx
mov byte [esp + 0x38c], 1
call fcn.00418060
cmp byte [esp + 0x240], 0
lea eax, [esp + 0x130]
jne 0x417f6e
mov eax, dword [esp + 0x12c]
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x417fdb
shr eax, 4
not al
and al, 1
je 0x417fdb
lea eax, [esp + 0x3c]
push eax
call fcn.00425bf0
mov byte [esp + 0x388], 4
cmp byte [esp + 0x240], 0
lea eax, [esp + 0x130]
jne 0x417fb0
mov eax, dword [esp + 0x12c]
add eax, 4
push eax
lea edi, [esp + 0x40]
call fcn.00425020
add ebx, 0x1c00
push ebx
mov ecx, edi
call fcn.00425df0
mov ecx, edi
push ecx
mov byte [esp + 0x38c], 1
call fcn.004180e0
cmp byte [esp + 0x240], 0
mov esi, 0x4d4d70
mov dword [esp + 0x124], esi
jne 0x41800c
mov eax, dword [esp + 0x12c]
lea edx, [esp + 0x130]
cmp eax, edx
je 0x41800c
push eax
call fcn.00470027
add esp, 4
cmp byte [esp + 0x368], 0
mov dword [esp + 0x24c], esi
jne 0x418038
mov eax, dword [esp + 0x254]
lea ecx, [esp + 0x258]
cmp eax, ecx
je 0x418038
push eax
call fcn.00470027
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x380]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x368]
xor ecx, esp
call fcn.0046fdae
mov esp, ebp
pop ebp
ret