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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4fcaa8
push eax
mov dword fs:[0], esp
sub esp, 0x34
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x54]
mov esi, ecx
test edi, edi
je 0x406b7d
push edi
call fcn.00424161
add esp, 4
test eax, eax
je 0x406b7d
mov eax, dword [esi + 0x10]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x406b3a
xor eax, eax
jmp 0x406b82
push edi
lea ecx, [esp + 0x58]
call fcn.004da85a
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x4c], 0
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x406b97
test al, 0x10
jne 0x406b97
lea edx, [esp + 0x54]
mov ecx, esi
push edx
call fcn.00406da0
lea ecx, [esp + 0x54]
mov dword [esp + 0x4c], 0xffffffff
call fcn.004da7e6
mov eax, 1
mov ecx, dword [esp + 0x44]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x40
ret 4
lea ecx, [esp + 0x28]
mov ebp, 1
call fcn.00418ddd
push 0x5c
lea ecx, [esp + 0x58]
mov byte [esp + 0x50], 1
call fcn.004d4e22
lea eax, [esp + 0x54]
push 0x5313d4
lea ecx, [esp + 0x18]
push eax
push ecx
call fcn.004daa8b
mov eax, dword [eax]
push 0
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x54], 2
call fcn.00418ea2
lea ecx, [esp + 0x14]
mov edi, eax
mov byte [esp + 0x4c], 1
call fcn.004da7e6
test edi, edi
je 0x406d52
mov edx, dword [esi + 0x10]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x406d78
lea ecx, [esp + 0x28]
call fcn.004190c8
lea ecx, [esp + 0x28]
mov edi, eax
call fcn.0041908b
test eax, eax
jne 0x406d4a
lea eax, [esp + 0x18]
lea ecx, [esp + 0x28]
push eax
call fcn.004192c3
push 0x104
mov ecx, eax
mov byte [esp + 0x50], 3
call fcn.004dac2b
push eax
lea ecx, [esp + 0x18]
call fcn.004da85a
lea ecx, [esp + 0x18]
mov byte [esp + 0x4c], 5
call fcn.004da7e6
mov edx, dword [esp + 0x28]
push 0x10
lea ecx, [esp + 0x2c]
call dword [edx + 0x38]
test eax, eax
je 0x406cdb
mov eax, dword [esi + 0x4c]
test eax, eax
je 0x406d3c
lea eax, [esp + 0x54]
push 0x5313d0
lea ecx, [esp + 0x24]
push eax
push ecx
call fcn.004daa8b
lea edx, [esp + 0x14]
mov byte [esp + 0x4c], 6
push edx
push eax
lea eax, [esp + 0x24]
push eax
call fcn.004daa25
mov eax, dword [eax]
mov ecx, esi
push eax
mov byte [esp + 0x50], 7
call fcn.00406af0
test eax, eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x4c], 6
sete bl
call fcn.004da7e6
lea ecx, [esp + 0x20]
mov byte [esp + 0x4c], 5
call fcn.004da7e6
test bl, bl
je 0x406d3c
xor ebp, ebp
jmp 0x406d3c
lea ecx, [esp + 0x54]
push 0x5313d0
lea edx, [esp + 0x28]
push ecx
push edx
call fcn.004daa8b
lea ecx, [esp + 0x14]
lea edx, [esp + 0x10]
push ecx
push eax
push edx
mov byte [esp + 0x58], 8
call fcn.004daa25
lea ecx, [esp + 0x24]
mov byte [esp + 0x4c], 0xa
call fcn.004da7e6
lea eax, [esp + 0x10]
mov ecx, esi
push eax
call fcn.004066a0
test eax, eax
je 0x406d2e
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call fcn.00406da0
lea ecx, [esp + 0x10]
mov byte [esp + 0x4c], 5
call fcn.004da7e6
lea ecx, [esp + 0x14]
mov byte [esp + 0x4c], 1
call fcn.004da7e6
test edi, edi
jne 0x406bf4
lea ecx, [esp + 0x28]
mov byte [esp + 0x4c], 0
call fcn.00418e1c
lea ecx, [esp + 0x54]
mov dword [esp + 0x4c], 0xffffffff
call fcn.004da7e6
mov eax, ebp
jmp 0x406b82
lea ecx, [esp + 0x28]
mov byte [esp + 0x4c], 0
call fcn.00418e1c
lea ecx, [esp + 0x54]
mov dword [esp + 0x4c], 0xffffffff
call fcn.004da7e6
xor eax, eax
jmp 0x406b82