Function at 0x431700
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6290e8
mov eax, dword fs:[0]
push eax
sub esp, 0x84
mov eax, dword [0x6cd400]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
xor eax, eax
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x30], 7
mov dword [ebp - 0x34], 0
mov word [ebp - 0x44], ax
mov dword [ebp - 4], eax
lea edx, [eax + 0xe]
lea ecx, [ebp - 0x44]
call fcn.004a05c0
push 0xd
xor eax, eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
push 0x67c7b8
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
call fcn.00403c30
mov byte [ebp - 4], 1
push ecx
lea edx, [ebp - 0x2c]
lea ecx, [ebp - 0x44]
call fcn.004a0a50
add esp, 4
mov byte [ebp - 4], 0
cmp dword [ebp - 0x18], 8
jb 0x4317b8
push dword [ebp - 0x2c]
call fcn.004c56c2
add esp, 4
xor eax, eax
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
cmp byte [ebp + 8], al
je 0x431a1e
cmp dword [ebp - 0x30], 8
lea eax, [ebp - 0x44]
cmovae eax, dword [ebp - 0x44]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x431a1e
cmp dword [ebp - 0x30], 8
lea eax, [ebp - 0x44]
cmovae eax, dword [ebp - 0x44]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
setne al
test al, al
jne 0x43181e
push 0
mov dl, 1
lea ecx, [ebp - 0x44]
call fcn.004a0f70
add esp, 4
jmp 0x431a1e
xor eax, eax
push 0xffffffffffffffff
push eax
mov word [ebp - 0x2c], ax
lea eax, [ebp - 0x44]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
push eax
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
call fcn.00403b10
mov byte [ebp - 4], 2
xor eax, eax
push 0xffffffffffffffff
push eax
mov word [ebp - 0x5c], ax
lea eax, [ebp - 0x44]
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
push eax
lea ecx, [ebp - 0x5c]
mov dword [ebp - 0x48], 7
mov dword [ebp - 0x4c], 0
call fcn.00403b10
mov byte [ebp - 4], 3
lea edi, [esi + 0x1ec]
push 0x6776ac
push edi
call fcn.00404800
add esp, 8
test al, al
je 0x4318ee
push 0x67c784
lea ecx, [ebp - 0x8c]
call fcn.004035b0
mov byte [ebp - 4], 4
push ecx
lea edx, [ebp - 0x8c]
lea ecx, [ebp - 0x2c]
call fcn.004a0a50
add esp, 4
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x8c]
call fcn.00403680
push 0x67c804
lea ecx, [ebp - 0x8c]
call fcn.004035b0
mov byte [ebp - 4], 5
jmp 0x43198e
push 0x677694
push edi
call fcn.00404800
add esp, 8
lea ecx, [ebp - 0x8c]
test al, al
je 0x43194b
push 0x67c7d4
call fcn.004035b0
mov byte [ebp - 4], 6
push ecx
lea edx, [ebp - 0x8c]
lea ecx, [ebp - 0x2c]
call fcn.004a0a50
add esp, 4
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x8c]
call fcn.00403680
push 0x67c854
lea ecx, [ebp - 0x8c]
call fcn.004035b0
mov byte [ebp - 4], 7
jmp 0x43198e
push 0x67c838
call fcn.004035b0
mov byte [ebp - 4], 8
push ecx
lea edx, [ebp - 0x8c]
lea ecx, [ebp - 0x2c]
call fcn.004a0a50
add esp, 4
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x8c]
call fcn.00403680
push 0x67c8a0
lea ecx, [ebp - 0x8c]
call fcn.004035b0
mov byte [ebp - 4], 9
push ecx
lea edx, [ebp - 0x8c]
lea ecx, [ebp - 0x5c]
call fcn.004a0a50
add esp, 4
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x8c]
call fcn.00403680
push 0
mov dl, 1
lea ecx, [ebp - 0x2c]
call fcn.004a0f70
add esp, 4
mov dl, 1
push 0
lea ecx, [ebp - 0x5c]
call fcn.004a0f70
add esp, 4
mov byte [ebp - 4], 2
cmp dword [ebp - 0x48], 8
jb 0x4319e2
push dword [ebp - 0x5c]
call fcn.004c56c2
add esp, 4
xor eax, eax
mov dword [ebp - 0x48], 7
mov dword [ebp - 0x4c], 0
mov word [ebp - 0x5c], ax
mov byte [ebp - 4], al
cmp dword [ebp - 0x18], 8
jb 0x431a0a
push dword [ebp - 0x2c]
call fcn.004c56c2
add esp, 4
xor eax, eax
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
push ecx
lea ecx, [ebp - 0x44]
call fcn.004a0b60
add esp, 4
push 0xc0
call fcn.004c568c
add esp, 4
mov dword [ebp - 0x90], eax
mov byte [ebp - 4], 0xa
test eax, eax
je 0x431a60
push ecx
mov ecx, eax
mov dword [eax + 0x68], 0
mov dword [eax + 0x90], 0
call fcn.004a84c0
jmp 0x431a62
xor eax, eax
mov byte [ebp - 4], 0
push 0xb
push 0x6776ac
mov dword [esi + 0xf4], eax
push dword [esi + 0x1fc]
lea ecx, [esi + 0x1ec]
push 0
call fcn.004048b0
test eax, eax
jne 0x431a9d
cmp dword [ebp - 0x30], 8
lea eax, [ebp - 0x44]
cmovae eax, dword [ebp - 0x44]
push eax
push 0x67c784
jmp 0x431adc
push 0xa
push 0x677694
push dword [esi + 0x1fc]
lea ecx, [esi + 0x1ec]
push 0
call fcn.004048b0
test eax, eax
lea eax, [ebp - 0x44]
jne 0x431ace
cmp dword [ebp - 0x30], 8
cmovae eax, dword [ebp - 0x44]
push eax
push 0x67c7d4
jmp 0x431adc
cmp dword [ebp - 0x30], 8
cmovae eax, dword [ebp - 0x44]
push eax
push 0x67c838
mov ecx, dword [esi + 0xf4]
call fcn.004a6a30
push 0xc
xor eax, eax
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
push 0x67c884
lea ecx, [ebp - 0x5c]
mov dword [ebp - 0x48], 7
mov dword [ebp - 0x4c], 0
mov word [ebp - 0x5c], ax
call fcn.00403c30
mov byte [ebp - 4], 0xb
push 0x17
xor eax, eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
push 0x67c968
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
call fcn.00403c30
mov byte [ebp - 4], 0xc
lea eax, [ebp - 0x5c]
push 1
push eax
lea edx, [ebp - 0x2c]
lea ecx, [ebp - 0x74]
call fcn.00429050
add esp, 8
mov byte [ebp - 4], 0xe
cmp dword [ebp - 0x18], 8
jb 0x431b7a
push dword [ebp - 0x2c]
call fcn.004c56c2
add esp, 4
xor eax, eax
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
mov byte [ebp - 4], 0xf
cmp dword [ebp - 0x48], 8
jb 0x431ba3
push dword [ebp - 0x5c]
call fcn.004c56c2
add esp, 4
push 1
push 0x6776c4
push dword [ebp - 0x64]
xor eax, eax
push eax
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x48], 7
mov dword [ebp - 0x4c], 0
mov word [ebp - 0x5c], ax
call fcn.004048b0
test eax, eax
jne 0x431bd5
mov byte [esi + 0x23d], 1
cmp byte [esi + 0x23d], 0
mov ecx, dword [esi + 0xf4]
je 0x431be8
push 0xa
jmp 0x431bea
push 0x1e
call fcn.004a66f0
call fcn.004a6ea0
push dword [esi + 0xf4]
mov ecx, eax
call fcn.004a6f20
mov ecx, dword [esi + 0xf8]
lea eax, [esi + 0xf8]
push 0x67c76c
push 0x67c8c0
push eax
call dword [ecx + 0x14]
add esp, 0xc
mov byte [ebp - 4], 0
cmp dword [ebp - 0x60], 8
jb 0x431c33
push dword [ebp - 0x74]
call fcn.004c56c2
add esp, 4
xor eax, eax
mov dword [ebp - 0x60], 7
mov dword [ebp - 0x64], 0
mov word [ebp - 0x74], ax
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x30], 8
jb 0x431c5f
push dword [ebp - 0x44]
call fcn.004c56c2
add esp, 4
xor eax, eax
mov dword [ebp - 0x30], 7
mov dword [ebp - 0x34], 0
mov word [ebp - 0x44], ax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.005e96ad
mov esp, ebp
pop ebp
ret 4