Function at 0x41a940
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a116b
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x4c9860]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
xor ecx, ecx
push 0xffffffffffffffff
mov dword [ebp - 0x60], 0
push ecx
mov word [ebp - 0x2c], cx
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
push eax
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x64], edi
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
call fcn.0040bd60
mov dword [ebp - 4], 1
cmp dword [ebp - 0x1c], 0
jne 0x41aa25
lea ecx, [ebp - 0x44]
call fcn.004300e0
mov esi, eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 2
cmp eax, esi
je 0x41a9fc
cmp dword [ebp - 0x18], 8
jb 0x41a9df
push dword [ebp - 0x2c]
call fcn.0047cf40
add esp, 4
xor eax, eax
push esi
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
call fcn.0040c240
mov byte [ebp - 4], 1
cmp dword [ebp - 0x30], 8
jb 0x41aa11
push dword [ebp - 0x44]
call fcn.0047cf40
add esp, 4
xor eax, eax
mov dword [ebp - 0x30], 7
mov dword [ebp - 0x34], 0
mov word [ebp - 0x44], ax
push 1
push 0x4b3f78
lea ecx, [ebp - 0x2c]
call fcn.004035b0
push 0xffffffffffffffff
push 0
push ebx
mov ecx, eax
call fcn.004034a0
cmp dword [ebp - 0x1c], 0
je 0x41aaa1
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
sete al
test al, al
je 0x41aaa1
xor eax, eax
push 0xffffffffffffffff
push eax
mov word [ebp - 0x44], ax
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
push eax
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x30], 7
mov dword [ebp - 0x34], 0
call fcn.0040bd60
lea esi, [ebp - 0x44]
mov byte [ebp - 4], 3
mov ebx, 1
jmp 0x41aae0
xor eax, eax
push eax
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
push 0x4b33dc
lea ecx, [ebp - 0x5c]
mov dword [ebp - 0x48], 7
mov dword [ebp - 0x4c], 0
mov word [ebp - 0x5c], ax
call fcn.0040c0d0
lea esi, [ebp - 0x5c]
mov dword [ebp - 4], 4
mov ebx, 2
xor eax, eax
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
mov word [edi], ax
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x60], ebx
jae 0x41ab11
mov eax, dword [esi + 0x10]
inc eax
je 0x41ab1b
add eax, eax
push eax
push esi
push edi
call fcn.0047d010
add esp, 0xc
jmp 0x41ab1b
mov eax, dword [esi]
mov dword [edi], eax
mov dword [esi], 0
mov eax, dword [esi + 0x10]
mov dword [edi + 0x10], eax
mov eax, dword [esi + 0x14]
mov dword [edi + 0x14], eax
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
or ebx, 4
mov dword [ebp - 0x60], ebx
mov dword [ebp - 4], 3
test bl, 2
je 0x41ab77
and ebx, 0xfffffffd
cmp dword [ebp - 0x48], 8
mov dword [ebp - 0x60], ebx
jb 0x41ab63
push dword [ebp - 0x5c]
call fcn.0047cf40
add esp, 4
xor eax, eax
mov dword [ebp - 0x48], 7
mov dword [ebp - 0x4c], 0
mov word [ebp - 0x5c], ax
mov dword [ebp - 4], 1
test bl, 1
je 0x41abae
and ebx, 0xfffffffe
cmp dword [ebp - 0x30], 8
mov dword [ebp - 0x60], ebx
jb 0x41ab9a
push dword [ebp - 0x44]
call fcn.0047cf40
add esp, 4
xor eax, eax
mov dword [ebp - 0x30], 7
mov dword [ebp - 0x34], 0
mov word [ebp - 0x44], ax
mov byte [ebp - 4], 0
cmp dword [ebp - 0x18], 8
jb 0x41abc3
push dword [ebp - 0x2c]
call fcn.0047cf40
add esp, 4
xor eax, eax
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0047cf45
mov esp, ebp
pop ebp
ret 0xc