Function at 0x10020f54
Capabilities:
Check if file exists

Disassembly:
push ebp
sub esp, 0xa70
lea ebp, [esp - 4]
mov eax, dword [0x100598e8]
xor eax, ebp
mov dword [ebp + 0xa70], eax
push 0x78
mov eax, 0x10048358
call fcn.1003177f
mov edi, dword [ebp + 0xa7c]
mov esi, 0x10051fe4
push esi
lea ecx, [ebp - 0x18]
call fcn.100107c9
xor ebx, ebx
push esi
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], ebx
call fcn.100107c9
push esi
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.100107c9
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 2
call fcn.100169e1
push 0x68
lea eax, [ebp - 0x84]
push ebx
push eax
mov byte [ebp - 4], 3
call fcn.10031310
lea eax, [ebp - 0x84]
push eax
push edi
call fcn.1000e6af
add esp, 0x14
test eax, eax
jne 0x1002102b
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 2
call fcn.10016d4c
lea ecx, [ebp - 0x10]
call fcn.1000e380
lea ecx, [ebp - 0x14]
call fcn.1000e380
lea ecx, [ebp - 0x18]
call fcn.1000e380
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0xa70]
xor ecx, ebp
call fcn.10031770
add ebp, 0xa74
leave
ret 4
xor eax, eax
mov esi, 0x206
push esi
mov word [ebp + 0x868], ax
lea eax, [ebp + 0x86a]
push ebx
push eax
mov dword [ebp - 0x1c], ebx
call fcn.10031310
xor eax, eax
push esi
mov word [ebp + 0x250], ax
lea eax, [ebp + 0x252]
push ebx
push eax
call fcn.10031310
xor eax, eax
push esi
mov word [ebp + 0x458], ax
lea eax, [ebp + 0x45a]
push ebx
push eax
call fcn.10031310
add esp, 0x24
push edi
push 0x104
lea eax, [ebp + 0x868]
push eax
call fcn.10009101
lea eax, [ebp + 0x868]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov edi, dword [sym.imp.SHLWAPI.dll_PathCombineW]
push 0x1004eb48
lea eax, [ebp + 0x868]
push eax
lea eax, [ebp + 0x250]
push eax
call edi
push 0x1004eb34
lea eax, [ebp + 0x868]
push eax
lea eax, [ebp + 0x458]
push eax
call edi
lea eax, [ebp + 0x250]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x100210ec
lea eax, [ebp + 0x458]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x100210f3
mov dword [ebp - 0x1c], 1
push dword [ebp - 0x3c]
lea ecx, [ebp - 0x18]
call fcn.1001015c
push dword [ebp - 0x28]
lea ecx, [ebp - 0x14]
call fcn.1001015c
push dword [ebp - 0x44]
lea ecx, [ebp - 0x10]
call fcn.1001015c
push ebx
push 0x1004eb24
lea ecx, [ebp - 0x18]
call fcn.1000e34e
cmp eax, 0xffffffff
jne 0x10021153
push ebx
push 0x1004eb24
lea ecx, [ebp - 0x14]
call fcn.1000e34e
cmp eax, 0xffffffff
jne 0x10021153
push ebx
push 0x1004eb18
lea ecx, [ebp - 0x10]
call fcn.1000e34e
cmp eax, 0xffffffff
jne 0x10021153
cmp dword [ebp - 0x1c], 1
jne 0x100211ad
xor eax, eax
push esi
mov word [ebp + 0x660], ax
lea eax, [ebp + 0x662]
push ebx
push eax
call fcn.10031310
add esp, 0xc
push 0x1004eb04
lea eax, [ebp + 0x868]
push eax
lea eax, [ebp + 0x660]
push eax
call edi
test eax, eax
je 0x100211ad
lea eax, [ebp + 0x660]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x100211ad
push 0x1004eafc
lea eax, [ebp + 0x660]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
jne 0x100211db
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 2
call fcn.10016d4c
lea ecx, [ebp - 0x10]
call fcn.1000e380
lea ecx, [ebp - 0x14]
call fcn.1000e380
lea ecx, [ebp - 0x18]
call fcn.1000e380
mov eax, ebx
jmp 0x10021006
lea eax, [ebp]
push eax
lea eax, [ebp + 0x660]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x100211ad
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
xor ebx, ebx
inc ebx
jmp 0x100211ad