Function at 0x431830
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2e4
mov ecx, dword [ebp + 8]
call fcn.00422d20
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0
je 0x431900
mov eax, dword [ebp + 8]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 8]
cmp dword [edx + 0x14], 8
jb 0x43186c
mov dword [ebp - 0x18], 1
jmp 0x431873
mov dword [ebp - 0x18], 0
mov al, byte [ebp - 0x18]
mov byte [ebp - 1], al
movzx ecx, byte [ebp - 1]
test ecx, ecx
je 0x43188f
mov edx, dword [ebp - 8]
mov eax, dword [edx]
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp - 0x44]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x48], edx
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x4c], eax
mov ecx, dword [ebp - 0x4c]
movzx edx, word [ecx]
test edx, edx
je 0x431900
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0xc]
cmp dword [edx + 0x14], 8
jb 0x4318c3
mov dword [ebp - 0x20], 1
jmp 0x4318ca
mov dword [ebp - 0x20], 0
mov al, byte [ebp - 0x20]
mov byte [ebp - 2], al
movzx ecx, byte [ebp - 2]
test ecx, ecx
je 0x4318e6
mov edx, dword [ebp - 0xc]
mov eax, dword [edx]
mov dword [ebp - 0x50], eax
mov ecx, dword [ebp - 0x50]
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x54], edx
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x58], eax
mov ecx, dword [ebp - 0x58]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x431907
xor eax, eax
jmp 0x431a76
xor edx, edx
mov dword [ebp - 0x94], edx
mov dword [ebp - 0x90], edx
mov dword [ebp - 0x8c], edx
mov dword [ebp - 0x88], edx
mov dword [ebp - 0x84], edx
mov dword [ebp - 0x80], edx
mov dword [ebp - 0x7c], edx
mov dword [ebp - 0x78], edx
mov dword [ebp - 0x74], edx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp - 0x10]
cmp dword [edx + 0x14], 8
jb 0x431951
mov dword [ebp - 0x28], 1
jmp 0x431958
mov dword [ebp - 0x28], 0
mov al, byte [ebp - 0x28]
mov byte [ebp - 3], al
movzx ecx, byte [ebp - 3]
test ecx, ecx
je 0x431974
mov edx, dword [ebp - 0x10]
mov eax, dword [edx]
mov dword [ebp - 0x5c], eax
mov ecx, dword [ebp - 0x5c]
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x60], edx
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x64], eax
lea ecx, [ebp - 0x94]
push ecx
push 0
mov edx, dword [ebp - 0x64]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
jne 0x43199e
xor eax, eax
jmp 0x431a76
mov eax, dword [ebp - 0x94]
and eax, 0x400
je 0x431a74
push 0x250
push 0
lea ecx, [ebp - 0x2e4]
push ecx
call fcn.00459400
add esp, 0xc
mov edx, dword [ebp + 8]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x14]
cmp dword [ecx + 0x14], 8
jb 0x4319e3
mov dword [ebp - 0x30], 1
jmp 0x4319ea
mov dword [ebp - 0x30], 0
mov dl, byte [ebp - 0x30]
mov byte [ebp - 4], dl
movzx eax, byte [ebp - 4]
test eax, eax
je 0x431a06
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx]
mov dword [ebp - 0x68], edx
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x6c], ecx
mov edx, dword [ebp - 0x6c]
mov dword [ebp - 0x70], edx
lea eax, [ebp - 0x2e4]
push eax
mov ecx, dword [ebp - 0x70]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0xffffffff
je 0x431a74
mov edx, dword [ebp - 0x38]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 0xc], 0
je 0x431a47
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x94]
mov dword [eax], ecx
cmp dword [ebp - 0x2c0], 0xa000000c
je 0x431a68
cmp dword [ebp - 0x2c0], 0xa0000003
je 0x431a68
mov dword [ebp - 0x3c], 0
jmp 0x431a6f
mov dword [ebp - 0x3c], 1
mov eax, dword [ebp - 0x3c]
jmp 0x431a76
xor eax, eax
mov esp, ebp
pop ebp
ret 8