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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4546f0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x70
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x60]
push ecx
call fcn.00405480
mov byte [ebp - 4], 1
push 0x460870
push eax
lea edx, [ebp - 0x44]
push edx
call fcn.00405530
add esp, 0x14
mov byte [ebp - 4], 3
mov edi, 8
cmp dword [ebp - 0x4c], edi
jb 0x402a20
mov eax, dword [ebp - 0x60]
push eax
call fcn.00408104
add esp, 4
mov eax, dword [ebp - 0x44]
xor ecx, ecx
mov esi, 7
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x50], ebx
mov word [ebp - 0x60], cx
cmp dword [ebp - 0x30], edi
jae 0x402a3c
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x402a9f
mov byte [ebp - 4], bl
cmp dword [ebp - 0x30], edi
jb 0x402a5c
mov edx, dword [ebp - 0x44]
push edx
call fcn.00408104
add esp, 4
xor eax, eax
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x34], ebx
mov word [ebp - 0x44], ax
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp + 0x1c], edi
jb 0x402a80
mov ecx, dword [ebp + 8]
push ecx
call fcn.00408104
add esp, 4
pop edi
mov dword [ebp + 0x1c], esi
xor edx, edx
pop esi
mov dword [ebp + 0x18], ebx
mov word [ebp + 8], dx
xor al, al
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
xor eax, eax
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x18], ebx
mov word [ebp - 0x28], ax
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x18]
cmp eax, 0x400
ja 0x402aed
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x400
je 0x402aed
mov esi, eax
jae 0x402ada
push eax
push 0x400
lea ecx, [ebp - 0x28]
push ecx
call fcn.00406450
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x18], esi
cmp ecx, edi
jae 0x402ae7
lea eax, [ebp - 0x28]
xor edx, edx
mov word [eax + esi*2], dx
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x7c]
push ecx
call fcn.00405480
mov byte [ebp - 4], 5
push str.Paz_pad00000.meta
push eax
lea edx, [ebp - 0x60]
push edx
call fcn.00405530
add esp, 0x14
mov byte [ebp - 4], 6
mov edi, eax
lea esi, [ebp - 0x28]
call fcn.004048a0
mov byte [ebp - 4], 5
mov esi, 8
cmp dword [ebp - 0x4c], esi
jb 0x402b38
mov eax, dword [ebp - 0x60]
push eax
call fcn.00408104
add esp, 4
mov edi, 7
xor ecx, ecx
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x50], ebx
mov word [ebp - 0x60], cx
mov byte [ebp - 4], 4
cmp dword [ebp - 0x68], esi
jb 0x402b5e
mov edx, dword [ebp - 0x7c]
push edx
call fcn.00408104
add esp, 4
xor eax, eax
mov word [ebp - 0x7c], ax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x68], edi
mov dword [ebp - 0x6c], ebx
cmp dword [ebp - 0x14], esi
jae 0x402b75
lea eax, [ebp - 0x28]
push 0x4607d0
push eax
call fcn.0040836a
add esp, 8
cmp eax, ebx
jne 0x402bea
mov byte [ebp - 4], 3
cmp dword [ebp - 0x14], esi
jb 0x402b9c
mov ecx, dword [ebp - 0x28]
push ecx
call fcn.00408104
add esp, 4
xor edx, edx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], ebx
mov word [ebp - 0x28], dx
mov byte [ebp - 4], bl
cmp dword [ebp - 0x30], esi
jb 0x402bbc
mov eax, dword [ebp - 0x44]
push eax
call fcn.00408104
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x34], ebx
mov word [ebp - 0x44], cx
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp + 0x1c], esi
jb 0x402be0
mov edx, dword [ebp + 8]
push edx
call fcn.00408104
add esp, 4
xor eax, eax
mov word [ebp + 8], ax
xor al, al
jmp 0x402c54
push eax
call fcn.00408a3e
add esp, 4
mov byte [ebp - 4], 3
cmp dword [ebp - 0x14], esi
jb 0x402c08
mov ecx, dword [ebp - 0x28]
push ecx
call fcn.00408104
add esp, 4
xor edx, edx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], ebx
mov word [ebp - 0x28], dx
mov byte [ebp - 4], bl
cmp dword [ebp - 0x30], esi
jb 0x402c28
mov eax, dword [ebp - 0x44]
push eax
call fcn.00408104
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x34], ebx
mov word [ebp - 0x44], cx
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp + 0x1c], esi
jb 0x402c4c
mov edx, dword [ebp + 8]
push edx
call fcn.00408104
add esp, 4
xor eax, eax
mov word [ebp + 8], ax
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword [ebp + 0x1c], edi
pop edi
mov dword [ebp + 0x18], ebx
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret