Function at 0x43af20
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2e4
mov ecx, dword [ebp + 8]
call fcn.00422d10
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0
je 0x43aff0
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 0x43af5c
mov dword [ebp - 0x18], 1
jmp 0x43af63
mov dword [ebp - 0x18], 0
mov al, byte [ebp - 0x18]
mov byte [ebp - 1], al
movzx ecx, byte [ebp - 1]
test ecx, ecx
je 0x43af7f
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 0x43aff0
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 0x43afb3
mov dword [ebp - 0x20], 1
jmp 0x43afba
mov dword [ebp - 0x20], 0
mov al, byte [ebp - 0x20]
mov byte [ebp - 2], al
movzx ecx, byte [ebp - 2]
test ecx, ecx
je 0x43afd6
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 0x43aff7
xor eax, eax
jmp 0x43b166
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 0x43b041
mov dword [ebp - 0x28], 1
jmp 0x43b048
mov dword [ebp - 0x28], 0
mov al, byte [ebp - 0x28]
mov byte [ebp - 3], al
movzx ecx, byte [ebp - 3]
test ecx, ecx
je 0x43b064
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 0x43b08e
xor eax, eax
jmp 0x43b166
mov eax, dword [ebp - 0x94]
and eax, 0x400
je 0x43b164
push 0x250
push 0
lea ecx, [ebp - 0x2e4]
push ecx
call fcn.00450f70
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 0x43b0d3
mov dword [ebp - 0x30], 1
jmp 0x43b0da
mov dword [ebp - 0x30], 0
mov dl, byte [ebp - 0x30]
mov byte [ebp - 4], dl
movzx eax, byte [ebp - 4]
test eax, eax
je 0x43b0f6
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 0x43b164
mov edx, dword [ebp - 0x38]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 0xc], 0
je 0x43b137
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x94]
mov dword [eax], ecx
cmp dword [ebp - 0x2c0], 0xa000000c
je 0x43b158
cmp dword [ebp - 0x2c0], 0xa0000003
je 0x43b158
mov dword [ebp - 0x3c], 0
jmp 0x43b15f
mov dword [ebp - 0x3c], 1
mov eax, dword [ebp - 0x3c]
jmp 0x43b166
xor eax, eax
mov esp, ebp
pop ebp
ret 8