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

Disassembly:
push 0x188
mov eax, 0x41ac3d
call fcn.0040de36
mov eax, dword [ebp + 8]
and dword [ebp - 0xa8], 0
mov edi, edx
mov ebx, ecx
push edi
lea esi, [ebp - 0x6c]
mov dword [ebp - 0xb8], eax
mov dword [ebp - 0xbc], ebx
mov dword [ebp - 0xac], edi
call fcn.004018c4
push 0x41f700
xor esi, esi
lea eax, [ebp - 0x50]
push ebx
inc esi
push eax
mov dword [ebp - 4], esi
call fcn.0040682d
lea ecx, [ebp - 0x6c]
push ecx
push eax
lea eax, [ebp - 0xe0]
push eax
mov byte [ebp - 4], 2
call fcn.0040687b
add esp, 0x18
cmp dword [eax + 0x18], 8
jb 0x4053c8
mov eax, dword [eax + 4]
jmp 0x4053cb
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
sete byte [ebp - 0xad]
xor ebx, ebx
push ebx
push esi
lea esi, [ebp - 0xe0]
call fcn.00401b29
push ebx
push 1
lea esi, [ebp - 0x50]
mov byte [ebp - 4], 1
call fcn.00401b29
cmp byte [ebp - 0xad], bl
je 0x405424
mov esi, dword [ebp - 0xb8]
lea eax, [ebp - 0x6c]
push eax
call fcn.004018c4
xor eax, eax
inc eax
push ebx
mov dword [ebp - 0xa8], eax
mov byte [ebp - 4], bl
push eax
jmp 0x40574c
lea eax, [ebp - 0xb4]
push eax
mov eax, edi
mov dword [ebp - 0xb4], 0x2e
call fcn.0040632b
mov dword [ebp - 0xb4], eax
cmp eax, 0xffffffff
jne 0x40544b
mov eax, edi
jmp 0x4054a7
lea eax, [ebp - 0x114]
mov ecx, edi
call fcn.00405f7f
mov edi, dword [ebp - 0xb4]
lea ebx, [ebp - 0x10c]
call fcn.0040604e
mov ecx, dword [ebp - 0xac]
mov esi, eax
lea eax, [ebp - 0x124]
call fcn.00405f7f
push dword [esi + 4]
lea ebx, [ebp - 0x15c]
push dword [esi]
push dword [eax + 4]
push dword [eax]
call fcn.00405ee8
mov edi, dword [ebp - 0xac]
mov byte [ebp - 4], 3
mov dword [ebp - 0xa8], 2
xor ebx, ebx
push eax
lea esi, [ebp - 0xa4]
call fcn.004018c4
mov dword [ebp - 4], 5
test byte [ebp - 0xa8], 2
je 0x4054d8
and dword [ebp - 0xa8], 0xfffffffd
push ebx
push 1
lea esi, [ebp - 0x15c]
call fcn.00401b29
cmp dword [ebp - 0xb4], 0xffffffff
jne 0x40550d
xor eax, eax
mov dword [ebp - 0xc8], 7
mov dword [ebp - 0xcc], ebx
mov word [ebp - 0xdc], ax
mov byte [ebp - 4], 6
or dword [ebp - 0xa8], 4
lea eax, [ebp - 0xe0]
jmp 0x40557c
cmp dword [edi + 0x18], 8
jb 0x405518
mov eax, dword [edi + 4]
jmp 0x40551b
lea eax, [edi + 4]
mov ecx, dword [edi + 0x14]
mov esi, edi
lea ebx, [eax + ecx*2]
lea edi, [ebp - 0xc4]
call fcn.004063a4
mov ecx, dword [ebp - 0xac]
lea eax, [ebp - 0x11c]
call fcn.00405f7f
mov edi, dword [ebp - 0xb4]
lea ebx, [ebp - 0x104]
call fcn.0040604e
push dword [ebp - 0xc0]
lea ebx, [ebp - 0x140]
push dword [ebp - 0xc4]
push dword [eax + 4]
push dword [eax]
call fcn.00405ee8
mov dword [ebp - 4], 7
or dword [ebp - 0xa8], 8
xor ebx, ebx
push eax
lea esi, [ebp - 0x88]
call fcn.004018c4
mov dword [ebp - 4], 9
test byte [ebp - 0xa8], 8
je 0x4055ad
and dword [ebp - 0xa8], 0xfffffff7
push ebx
push 1
lea esi, [ebp - 0x140]
call fcn.00401b29
mov byte [ebp - 4], 0xa
test byte [ebp - 0xa8], 4
je 0x4055cf
and dword [ebp - 0xa8], 0xfffffffb
push ebx
push 1
lea esi, [ebp - 0xe0]
call fcn.00401b29
mov dword [ebp - 0xac], 1
push 7
xor eax, eax
pop ecx
mov word [ebp - 0x34], ax
lea edi, [ebp - 0x32]
rep stosd dword es:[edi], eax
push 0xa
stosw word es:[edi], ax
push 0x10
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0xac]
call fcn.0040d032
push 0x41f704
lea eax, [ebp - 0xa4]
push eax
lea eax, [ebp - 0xfc]
push eax
call fcn.0040682d
lea ecx, [ebp - 0x34]
push ecx
push eax
lea eax, [ebp - 0x178]
push eax
mov byte [ebp - 4], 0xb
call fcn.0040682d
lea ecx, [ebp - 0x88]
push ecx
push eax
lea eax, [ebp - 0x194]
push eax
mov byte [ebp - 4], 0xc
call fcn.0040687b
add esp, 0x34
push 0xffffffffffffffff
lea ecx, [ebp - 0x6c]
push ecx
xor ebx, ebx
mov byte [ebp - 4], 0xd
call fcn.00401922
xor edi, edi
push ebx
inc edi
push edi
lea esi, [ebp - 0x194]
mov byte [ebp - 4], 0xc
call fcn.00401b29
push ebx
push edi
lea esi, [ebp - 0x178]
mov byte [ebp - 4], 0xb
call fcn.00401b29
push ebx
push edi
lea esi, [ebp - 0xfc]
mov byte [ebp - 4], 0xa
call fcn.00401b29
push 0x41f700
push dword [ebp - 0xbc]
lea eax, [ebp - 0xfc]
push eax
call fcn.0040682d
lea ecx, [ebp - 0x6c]
push ecx
push eax
lea eax, [ebp - 0x50]
push eax
mov byte [ebp - 4], 0xe
call fcn.0040687b
add esp, 0x18
push ebx
push edi
lea esi, [ebp - 0xfc]
mov byte [ebp - 4], 0x10
call fcn.00401b29
cmp dword [ebp - 0x38], 8
mov eax, dword [ebp - 0x4c]
jae 0x4056d4
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push ebx
mov byte [ebp - 4], 0xa
lea esi, [ebp - 0x50]
push edi
cmp eax, 0xffffffff
je 0x40570b
call fcn.00401b29
inc dword [ebp - 0xac]
cmp dword [ebp - 0xac], 0x3e8
jl 0x4055d9
xor edi, edi
xor ebx, ebx
inc edi
jmp 0x405710
call fcn.00401b29
mov esi, dword [ebp - 0xb8]
lea eax, [ebp - 0x6c]
push eax
call fcn.004018c4
or dword [ebp - 0xa8], edi
push ebx
push edi
lea esi, [ebp - 0x88]
mov byte [ebp - 4], 5
call fcn.00401b29
push ebx
push edi
lea esi, [ebp - 0xa4]
mov byte [ebp - 4], 1
call fcn.00401b29
push ebx
mov byte [ebp - 4], bl
push edi
lea esi, [ebp - 0x6c]
call fcn.00401b29
mov eax, dword [ebp - 0xb8]
call fcn.0040de80
ret