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

Disassembly:
push 0x188
mov eax, 0x41971f
call fcn.0040c936
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.0040162f
push 0x41e5a8
xor esi, esi
lea eax, [ebp - 0x50]
push ebx
inc esi
push eax
mov dword [ebp - 4], esi
call fcn.0040604a
lea ecx, [ebp - 0x6c]
push ecx
push eax
lea eax, [ebp - 0xe0]
push eax
mov byte [ebp - 4], 2
call fcn.00406098
add esp, 0x18
cmp dword [eax + 0x18], 8
jb 0x40513c
mov eax, dword [eax + 4]
jmp 0x40513f
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.00401894
push ebx
push 1
lea esi, [ebp - 0x50]
mov byte [ebp - 4], 1
call fcn.00401894
cmp byte [ebp - 0xad], bl
je 0x405198
mov esi, dword [ebp - 0xb8]
lea eax, [ebp - 0x6c]
push eax
call fcn.0040162f
xor eax, eax
inc eax
push ebx
mov dword [ebp - 0xa8], eax
mov byte [ebp - 4], bl
push eax
jmp 0x4054c0
lea eax, [ebp - 0xb4]
push eax
mov eax, edi
mov dword [ebp - 0xb4], 0x2e
call fcn.00405c90
mov dword [ebp - 0xb4], eax
cmp eax, 0xffffffff
jne 0x4051bf
mov eax, edi
jmp 0x40521b
lea eax, [ebp - 0x114]
mov ecx, edi
call fcn.00405f34
mov edi, dword [ebp - 0xb4]
lea ebx, [ebp - 0x10c]
call fcn.00405a92
mov ecx, dword [ebp - 0xac]
mov esi, eax
lea eax, [ebp - 0x124]
call fcn.00405f34
push dword [esi + 4]
lea ebx, [ebp - 0x15c]
push dword [esi]
push dword [eax + 4]
push dword [eax]
call fcn.0040594c
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.0040162f
mov dword [ebp - 4], 5
test byte [ebp - 0xa8], 2
je 0x40524c
and dword [ebp - 0xa8], 0xfffffffd
push ebx
push 1
lea esi, [ebp - 0x15c]
call fcn.00401894
cmp dword [ebp - 0xb4], 0xffffffff
jne 0x405281
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 0x4052f0
cmp dword [edi + 0x18], 8
jb 0x40528c
mov eax, dword [edi + 4]
jmp 0x40528f
lea eax, [edi + 4]
mov ecx, dword [edi + 0x14]
mov esi, edi
lea ebx, [eax + ecx*2]
lea edi, [ebp - 0xc4]
call fcn.00405d09
mov ecx, dword [ebp - 0xac]
lea eax, [ebp - 0x11c]
call fcn.00405f34
mov edi, dword [ebp - 0xb4]
lea ebx, [ebp - 0x104]
call fcn.00405a92
push dword [ebp - 0xc0]
lea ebx, [ebp - 0x140]
push dword [ebp - 0xc4]
push dword [eax + 4]
push dword [eax]
call fcn.0040594c
mov dword [ebp - 4], 7
or dword [ebp - 0xa8], 8
xor ebx, ebx
push eax
lea esi, [ebp - 0x88]
call fcn.0040162f
mov dword [ebp - 4], 9
test byte [ebp - 0xa8], 8
je 0x405321
and dword [ebp - 0xa8], 0xfffffff7
push ebx
push 1
lea esi, [ebp - 0x140]
call fcn.00401894
mov byte [ebp - 4], 0xa
test byte [ebp - 0xa8], 4
je 0x405343
and dword [ebp - 0xa8], 0xfffffffb
push ebx
push 1
lea esi, [ebp - 0xe0]
call fcn.00401894
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.0040bbf2
push 0x41e5ac
lea eax, [ebp - 0xa4]
push eax
lea eax, [ebp - 0xfc]
push eax
call fcn.0040604a
lea ecx, [ebp - 0x34]
push ecx
push eax
lea eax, [ebp - 0x178]
push eax
mov byte [ebp - 4], 0xb
call fcn.0040604a
lea ecx, [ebp - 0x88]
push ecx
push eax
lea eax, [ebp - 0x194]
push eax
mov byte [ebp - 4], 0xc
call fcn.00406098
add esp, 0x34
push 0xffffffffffffffff
lea ecx, [ebp - 0x6c]
push ecx
xor ebx, ebx
mov byte [ebp - 4], 0xd
call fcn.0040168d
xor edi, edi
push ebx
inc edi
push edi
lea esi, [ebp - 0x194]
mov byte [ebp - 4], 0xc
call fcn.00401894
push ebx
push edi
lea esi, [ebp - 0x178]
mov byte [ebp - 4], 0xb
call fcn.00401894
push ebx
push edi
lea esi, [ebp - 0xfc]
mov byte [ebp - 4], 0xa
call fcn.00401894
push 0x41e5a8
push dword [ebp - 0xbc]
lea eax, [ebp - 0xfc]
push eax
call fcn.0040604a
lea ecx, [ebp - 0x6c]
push ecx
push eax
lea eax, [ebp - 0x50]
push eax
mov byte [ebp - 4], 0xe
call fcn.00406098
add esp, 0x18
push ebx
push edi
lea esi, [ebp - 0xfc]
mov byte [ebp - 4], 0x10
call fcn.00401894
cmp dword [ebp - 0x38], 8
mov eax, dword [ebp - 0x4c]
jae 0x405448
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 0x40547f
call fcn.00401894
inc dword [ebp - 0xac]
cmp dword [ebp - 0xac], 0x3e8
jl 0x40534d
xor edi, edi
xor ebx, ebx
inc edi
jmp 0x405484
call fcn.00401894
mov esi, dword [ebp - 0xb8]
lea eax, [ebp - 0x6c]
push eax
call fcn.0040162f
or dword [ebp - 0xa8], edi
push ebx
push edi
lea esi, [ebp - 0x88]
mov byte [ebp - 4], 5
call fcn.00401894
push ebx
push edi
lea esi, [ebp - 0xa4]
mov byte [ebp - 4], 1
call fcn.00401894
push ebx
mov byte [ebp - 4], bl
push edi
lea esi, [ebp - 0x6c]
call fcn.00401894
mov eax, dword [ebp - 0xb8]
call fcn.0040c980
ret