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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42048e
mov eax, dword fs:[0]
push eax
sub esp, 0xb8
mov eax, dword [0x42e024]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0x423638
lea edx, [esi + 0x58]
lea ecx, [ebp - 0xa0]
call fcn.00404f90
push 0x42ea70
mov edx, eax
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x88]
call fcn.00406350
push 0x423638
mov edx, eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x70]
call fcn.00404f40
add esp, 0xc
mov eax, dword [ebp - 0x74]
cmp eax, 0x10
jb 0x40d577
inc eax
push eax
push dword [ebp - 0x88]
call fcn.00404770
mov dword [ebp - 0x74], 0xf
mov dword [ebp - 0x78], 0
mov byte [ebp - 0x88], 0
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x8c]
cmp eax, 0x10
jb 0x40d5a8
inc eax
push eax
push dword [ebp - 0xa0]
call fcn.00404770
push 0x42eba8
lea edx, [ebp - 0x70]
mov dword [ebp - 0x8c], 0xf
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x90], 0
mov byte [ebp - 0xa0], 0
mov dword [ebp - 0xbc], 7
call fcn.00406380
add esp, 4
mov ebx, eax
lea eax, [ebp - 0xbc]
mov byte [ebp - 4], 5
push eax
lea eax, [ebp - 0xc4]
mov ecx, esi
push eax
call fcn.004162e0
mov edi, dword [ebp - 0xc4]
add edi, 0x14
cmp edi, ebx
je 0x40d63f
cmp dword [edi + 0x14], 0x10
jb 0x40d61a
mov eax, dword [edi + 0x14]
inc eax
push eax
push dword [edi]
call fcn.00404770
mov dword [edi + 0x14], 0xf
cmp dword [edi + 0x14], 0x10
mov dword [edi + 0x10], 0
jb 0x40d632
mov eax, dword [edi]
jmp 0x40d634
mov eax, edi
push ebx
mov ecx, edi
mov byte [eax], 0
call fcn.004046a0
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x40d655
inc eax
push eax
push dword [ebp - 0x28]
call fcn.00404770
push 0x42ea10
lea edx, [ebp - 0x70]
mov dword [ebp - 0xbc], 2
lea ecx, [ebp - 0x28]
call fcn.00406380
add esp, 4
mov ebx, eax
lea eax, [ebp - 0xbc]
mov byte [ebp - 4], 7
push eax
lea eax, [ebp - 0xc4]
mov ecx, esi
push eax
call fcn.004162e0
mov edi, dword [ebp - 0xc4]
add edi, 0x14
cmp edi, ebx
je 0x40d6d1
cmp dword [edi + 0x14], 0x10
jb 0x40d6ac
mov eax, dword [edi + 0x14]
inc eax
push eax
push dword [edi]
call fcn.00404770
mov dword [edi + 0x14], 0xf
cmp dword [edi + 0x14], 0x10
mov dword [edi + 0x10], 0
jb 0x40d6c4
mov eax, dword [edi]
jmp 0x40d6c6
mov eax, edi
push ebx
mov ecx, edi
mov byte [eax], 0
call fcn.004046a0
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x40d6e7
inc eax
push eax
push dword [ebp - 0x28]
call fcn.00404770
push 0x42ead0
lea edx, [ebp - 0x70]
mov dword [ebp - 0xbc], 3
lea ecx, [ebp - 0x28]
call fcn.00406380
add esp, 4
mov ebx, eax
lea eax, [ebp - 0xbc]
mov byte [ebp - 4], 9
push eax
lea eax, [ebp - 0xc4]
mov ecx, esi
push eax
call fcn.004162e0
mov edi, dword [ebp - 0xc4]
add edi, 0x14
cmp edi, ebx
je 0x40d763
cmp dword [edi + 0x14], 0x10
jb 0x40d73e
mov eax, dword [edi + 0x14]
inc eax
push eax
push dword [edi]
call fcn.00404770
mov dword [edi + 0x14], 0xf
cmp dword [edi + 0x14], 0x10
mov dword [edi + 0x10], 0
jb 0x40d756
mov eax, dword [edi]
jmp 0x40d758
mov eax, edi
push ebx
mov ecx, edi
mov byte [eax], 0
call fcn.004046a0
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x40d779
inc eax
push eax
push dword [ebp - 0x28]
call fcn.00404770
push 0x42eb78
lea edx, [ebp - 0x70]
mov dword [ebp - 0xbc], 6
lea ecx, [ebp - 0x28]
call fcn.00406380
add esp, 4
mov ebx, eax
lea eax, [ebp - 0xbc]
mov byte [ebp - 4], 0xb
push eax
lea eax, [ebp - 0xc4]
mov ecx, esi
push eax
call fcn.004162e0
mov edi, dword [ebp - 0xc4]
add edi, 0x14
cmp edi, ebx
je 0x40d7f5
cmp dword [edi + 0x14], 0x10
jb 0x40d7d0
mov eax, dword [edi + 0x14]
inc eax
push eax
push dword [edi]
call fcn.00404770
mov dword [edi + 0x14], 0xf
cmp dword [edi + 0x14], 0x10
mov dword [edi + 0x10], 0
jb 0x40d7e8
mov eax, dword [edi]
jmp 0x40d7ea
mov eax, edi
push ebx
mov ecx, edi
mov byte [eax], 0
call fcn.004046a0
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x40d80b
inc eax
push eax
push dword [ebp - 0x28]
call fcn.00404770
push 0x42eb18
lea edx, [ebp - 0x70]
mov dword [ebp - 0xbc], 8
lea ecx, [ebp - 0x28]
call fcn.00406380
add esp, 4
mov ebx, eax
lea eax, [ebp - 0xbc]
mov byte [ebp - 4], 0xd
push eax
lea eax, [ebp - 0xc4]
mov ecx, esi
push eax
call fcn.004162e0
mov edi, dword [ebp - 0xc4]
add edi, 0x14
cmp edi, ebx
je 0x40d887
cmp dword [edi + 0x14], 0x10
jb 0x40d862
mov eax, dword [edi + 0x14]
inc eax
push eax
push dword [edi]
call fcn.00404770
mov dword [edi + 0x14], 0xf
cmp dword [edi + 0x14], 0x10
mov dword [edi + 0x10], 0
jb 0x40d87a
mov eax, dword [edi]
jmp 0x40d87c
mov eax, edi
push ebx
mov ecx, edi
mov byte [eax], 0
call fcn.004046a0
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x40d89d
inc eax
push eax
push dword [ebp - 0x28]
call fcn.00404770
push 0x42ea40
lea edx, [ebp - 0x70]
mov dword [ebp - 0xbc], 9
lea ecx, [ebp - 0x28]
call fcn.00406380
add esp, 4
mov ebx, eax
lea eax, [ebp - 0xbc]
mov byte [ebp - 4], 0xf
push eax
lea eax, [ebp - 0xc4]
mov ecx, esi
push eax
call fcn.004162e0
mov edi, dword [ebp - 0xc4]
add edi, 0x14
cmp edi, ebx
je 0x40d919
cmp dword [edi + 0x14], 0x10
jb 0x40d8f4
mov eax, dword [edi + 0x14]
inc eax
push eax
push dword [edi]
call fcn.00404770
mov dword [edi + 0x14], 0xf
cmp dword [edi + 0x14], 0x10
mov dword [edi + 0x10], 0
jb 0x40d90c
mov eax, dword [edi]
jmp 0x40d90e
mov eax, edi
push ebx
mov ecx, edi
mov byte [eax], 0
call fcn.004046a0
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x40d92f
inc eax
push eax
push dword [ebp - 0x28]
call fcn.00404770
push 0x42e9b0
lea edx, [ebp - 0x70]
mov dword [ebp - 0xbc], 0xc
lea ecx, [ebp - 0x28]
call fcn.00406380
add esp, 4
mov ebx, eax
lea eax, [ebp - 0xbc]
mov byte [ebp - 4], 0x11
push eax
lea eax, [ebp - 0xc4]
mov ecx, esi
push eax
call fcn.004162e0
mov edi, dword [ebp - 0xc4]
add edi, 0x14
cmp edi, ebx
je 0x40d9ab
cmp dword [edi + 0x14], 0x10
jb 0x40d986
mov eax, dword [edi + 0x14]
inc eax
push eax
push dword [edi]
call fcn.00404770
mov dword [edi + 0x14], 0xf
cmp dword [edi + 0x14], 0x10
mov dword [edi + 0x10], 0
jb 0x40d99e
mov eax, dword [edi]
jmp 0x40d9a0
mov eax, edi
push ebx
mov ecx, edi
mov byte [eax], 0
call fcn.004046a0
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x40d9c1
inc eax
push eax
push dword [ebp - 0x28]
call fcn.00404770
push 0x42eae8
lea edx, [ebp - 0x70]
mov dword [ebp - 0xbc], 0xd
lea ecx, [ebp - 0x28]
call fcn.00406380
add esp, 4
mov ebx, eax
lea eax, [ebp - 0xbc]
mov byte [ebp - 4], 0x13
push eax
lea eax, [ebp - 0xc4]
mov ecx, esi
push eax
call fcn.004162e0
mov edi, dword [ebp - 0xc4]
add edi, 0x14
cmp edi, ebx
je 0x40da3d
cmp dword [edi + 0x14], 0x10
jb 0x40da18
mov eax, dword [edi + 0x14]
inc eax
push eax
push dword [edi]
call fcn.00404770
mov dword [edi + 0x14], 0xf
cmp dword [edi + 0x14], 0x10
mov dword [edi + 0x10], 0
jb 0x40da30
mov eax, dword [edi]
jmp 0x40da32
mov eax, edi
push ebx
mov ecx, edi
mov byte [eax], 0
call fcn.004046a0
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x40da53
inc eax
push eax
push dword [ebp - 0x28]
call fcn.00404770
push str.nt_system_service.exe
lea edx, [ebp - 0x70]
mov dword [ebp - 0xbc], 0x10
lea ecx, [ebp - 0x28]
call fcn.00404f90
add esp, 4
mov ebx, eax
lea eax, [ebp - 0xbc]
mov byte [ebp - 4], 0x15
push eax
lea eax, [ebp - 0xc4]
mov ecx, esi
push eax
call fcn.004162e0
mov edi, dword [ebp - 0xc4]
add edi, 0x14
cmp edi, ebx
je 0x40dacf
cmp dword [edi + 0x14], 0x10
jb 0x40daaa
mov eax, dword [edi + 0x14]
inc eax
push eax
push dword [edi]
call fcn.00404770
mov dword [edi + 0x14], 0xf
cmp dword [edi + 0x14], 0x10
mov dword [edi + 0x10], 0
jb 0x40dac2
mov eax, dword [edi]
jmp 0x40dac4
mov eax, edi
push ebx
mov ecx, edi
mov byte [eax], 0
call fcn.004046a0
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x40dae5
inc eax
push eax
push dword [ebp - 0x28]
call fcn.00404770
lea eax, [ebp - 0xbc]
mov dword [ebp - 0xbc], 4
push eax
lea eax, [ebp - 0xc4]
mov ecx, esi
push eax
call fcn.004162e0
mov ecx, dword [ebp - 0xc4]
push 0xffffffffffffffff
push 0
push 0x42ebc0
add ecx, 0x14
call fcn.00404370
lea eax, [ebp - 0xbc]
mov dword [ebp - 0xbc], 5
push eax
lea eax, [ebp - 0xc4]
mov ecx, esi
push eax
call fcn.004162e0
mov ecx, dword [ebp - 0xc4]
push 0xffffffffffffffff
push 0
push 0x42eb00
add ecx, 0x14
call fcn.00404370
lea eax, [ebp - 0xbc]
mov dword [ebp - 0xbc], 0xa
push eax
lea eax, [ebp - 0xc4]
mov ecx, esi
push eax
call fcn.004162e0
mov ecx, dword [ebp - 0xc4]
push 0xffffffffffffffff
push 0
push 0x42ea28
add ecx, 0x14
call fcn.00404370
lea eax, [ebp - 0xbc]
mov dword [ebp - 0xbc], 0xb
push eax
lea eax, [ebp - 0xc4]
mov ecx, esi
push eax
call fcn.004162e0
mov ecx, dword [ebp - 0xc4]
push 0xffffffffffffffff
push 0
push 0x42eaa0
add ecx, 0x14
call fcn.00404370
lea eax, [ebp - 0xbc]
mov dword [ebp - 0xbc], 0xe
push eax
lea eax, [ebp - 0xc4]
mov ecx, esi
push eax
call fcn.004162e0
mov ecx, dword [ebp - 0xc4]
push 0xffffffffffffffff
push 0
push 0x42e9e0
add ecx, 0x14
call fcn.00404370
lea eax, [ebp - 0xbc]
mov dword [ebp - 0xbc], 0xf
push eax
lea eax, [ebp - 0xc4]
mov ecx, esi
push eax
call fcn.004162e0
mov ecx, dword [ebp - 0xc4]
push 0xffffffffffffffff
push 0
push 0x42eb60
add ecx, 0x14
call fcn.00404370
lea eax, [ebp - 0xbc]
mov dword [ebp - 0xbc], 0x11
push eax
lea eax, [ebp - 0xc4]
mov ecx, esi
push eax
call fcn.004162e0
mov ecx, dword [ebp - 0xc4]
push 5
push str.NtSys
add ecx, 0x14
call fcn.00404270
lea eax, [ebp - 0xbc]
mov dword [ebp - 0xbc], 0x12
push eax
lea eax, [ebp - 0xc4]
mov ecx, esi
push eax
call fcn.004162e0
mov ecx, dword [ebp - 0xc4]
push 0x11
push str.NT_System_Service
add ecx, 0x14
call fcn.00404270
push 0x42ea58
lea edx, [ebp - 0x70]
mov dword [ebp - 0xbc], 1
lea ecx, [ebp - 0x28]
call fcn.00406380
add esp, 4
mov ebx, eax
lea eax, [ebp - 0xbc]
mov byte [ebp - 4], 0x17
push eax
lea eax, [ebp - 0xc4]
mov ecx, esi
push eax
call fcn.004162e0
mov edi, dword [ebp - 0xc4]
add edi, 0x14
cmp edi, ebx
je 0x40dd0d
cmp dword [edi + 0x14], 0x10
jb 0x40dce8
mov eax, dword [edi + 0x14]
inc eax
push eax
push dword [edi]
call fcn.00404770
mov dword [edi + 0x14], 0xf
cmp dword [edi + 0x14], 0x10
mov dword [edi + 0x10], 0
jb 0x40dd00
mov eax, dword [edi]
jmp 0x40dd02
mov eax, edi
push ebx
mov ecx, edi
mov byte [eax], 0
call fcn.004046a0
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x40dd23
inc eax
push eax
push dword [ebp - 0x28]
call fcn.00404770
cmp byte [esi + 0xc], 0
je 0x40ddbf
push 0x42eb90
lea edx, [ebp - 0x70]
mov dword [ebp - 0xbc], 0
lea ecx, [ebp - 0x28]
call fcn.00406380
add esp, 4
mov ebx, eax
lea eax, [ebp - 0xbc]
mov byte [ebp - 4], 0x19
push eax
lea eax, [ebp - 0xc4]
mov ecx, esi
push eax
call fcn.004162e0
mov edi, dword [ebp - 0xc4]
add edi, 0x14
cmp edi, ebx
je 0x40dda9
cmp dword [edi + 0x14], 0x10
jb 0x40dd84
mov eax, dword [edi + 0x14]
inc eax
push eax
push dword [edi]
call fcn.00404770
mov dword [edi + 0x14], 0xf
cmp dword [edi + 0x14], 0x10
mov dword [edi + 0x10], 0
jb 0x40dd9c
mov eax, dword [edi]
jmp 0x40dd9e
mov eax, edi
push ebx
mov ecx, edi
mov byte [eax], 0
call fcn.004046a0
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x40ddbf
inc eax
push eax
push dword [ebp - 0x28]
call fcn.00404770
push 0x4275b0
lea edx, [ebp - 0x70]
lea ecx, [ebp - 0x58]
call fcn.00404f90
push 0x423638
lea edx, [esi + 0x70]
mov byte [ebp - 4], 0x1b
lea ecx, [ebp - 0xb8]
call fcn.00404f90
push 0x42ea70
mov edx, eax
mov byte [ebp - 4], 0x1c
lea ecx, [ebp - 0x28]
call fcn.00406350
push str.library_
mov edx, eax
mov byte [ebp - 4], 0x1d
lea ecx, [ebp - 0x40]
call fcn.00404f40
mov eax, dword [ebp - 0x14]
add esp, 0x10
cmp eax, 0x10
jb 0x40de21
inc eax
push eax
push dword [ebp - 0x28]
call fcn.00404770
mov eax, dword [ebp - 0xa4]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
cmp eax, 0x10
jb 0x40de4b
inc eax
push eax
push dword [ebp - 0xb8]
call fcn.00404770
cmp dword [ebp - 0x44], 0x10
lea eax, [ebp - 0x58]
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmovae eax, dword [ebp - 0x58]
push eax
call ebx
cmp eax, 0xffffffff
je 0x40de78
test al, 0x10
je 0x40de78
cmp dword [ebp - 0x44], 0x10
lea ecx, [ebp - 0x58]
cmovae ecx, dword [ebp - 0x58]
call fcn.0040a3e0
mov esi, dword [ebp - 0x2c]
lea eax, [ebp - 0x40]
mov edi, dword [ebp - 0x40]
lea ecx, [ebp - 0x58]
push dword [ebp - 0x30]
mov edx, dword [ebp - 0x48]
cmp esi, 0x10
cmovae eax, edi
cmp dword [ebp - 0x44], 0x10
push eax
cmovae ecx, dword [ebp - 0x58]
call fcn.004041e0
add esp, 8
test eax, eax
je 0x40ded0
cmp esi, 0x10
lea eax, [ebp - 0x40]
cmovae eax, edi
push eax
call ebx
cmp eax, 0xffffffff
je 0x40deca
test al, 0x10
je 0x40deca
cmp dword [ebp - 0x2c], 0x10
lea ecx, [ebp - 0x40]
cmovae ecx, dword [ebp - 0x40]
call fcn.0040a3e0
mov edi, dword [ebp - 0x40]
mov esi, dword [ebp - 0x2c]
cmp esi, 0x10
jb 0x40dedf
lea eax, [esi + 1]
push eax
push edi
call fcn.00404770
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
cmp eax, 0x10
jb 0x40df03
inc eax
push eax
push dword [ebp - 0x58]
call fcn.00404770
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x44], 0xf
mov dword [ebp - 0x48], 0
mov byte [ebp - 0x58], 0
cmp eax, 0x10
jb 0x40df27
inc eax
push eax
push dword [ebp - 0x70]
call fcn.00404770
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041e02b
mov esp, ebp
pop ebp
ret