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

Disassembly:
sub esp, 0x22c
mov eax, dword [0x7034b250]
xor eax, esp
mov dword [esp + 0x228], eax
mov eax, dword [esp + 0x234]
push ebx
push ebp
xor ebp, ebp
mov ebx, edx
push esi
mov esi, dword [esp + 0x23c]
mov dword [eax], ebp
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], ecx
mov byte [esp + 0xe], 0
mov byte [esp + 0xf], 1
mov byte [esp + 0xd], 0
mov dword [esp + 0x10], ebp
mov dword [ecx], ebp
test ebx, ebx
jne 0x7021434a
test esi, esi
jne 0x7021434a
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x228]
xor ecx, esp
call fcn.702e1c2f
add esp, 0x22c
ret
push edi
mov dword [esp + 0x20], ebp
test ebx, ebx
jne 0x702145d8
push esi
call dword [sym.imp.SHLWAPI.dll_StrDupW]
mov esi, eax
cmp word [esi], 0x22
mov dword [esp + 0x20], esi
mov dword [esp + 0x18], esi
mov ebp, esi
jne 0x70214398
movzx eax, word [esi + 2]
add esi, 2
mov byte [esp + 0x13], bl
mov ecx, esi
test ax, ax
je 0x702143c2
cmp ax, 0x22
je 0x702143c0
movzx eax, word [esi + 2]
add esi, 2
mov ebp, esi
test ax, ax
jne 0x70214382
jmp 0x702143c2
movzx eax, word [esi]
mov ecx, dword [esp + 0x18]
test ax, ax
je 0x702143c2
cmp ax, 0x20
je 0x702143c0
cmp ax, 9
je 0x702143c0
movzx eax, word [esi + 2]
add esi, 2
mov ebp, esi
test ax, ax
jne 0x702143a4
jmp 0x702143c2
mov ebp, esi
movzx ebx, word [ebp]
xor eax, eax
push eax
lea edx, [esp + 0x34]
push edx
push 0x104
push str..exe
push ecx
push eax
mov dword [esp + 0x3c], ebx
mov word [ebp], ax
call dword [sym.imp.KERNEL32.dll_SearchPathW]
mov edi, eax
add edi, edi
je 0x70214419
cmp edi, 0x208
jae 0x7021440d
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x7021440a
test al, 0x10
jne 0x70214419
add edi, 2
test edi, edi
je 0x70214419
cmp edi, 0x208
jb 0x70214441
mov word [ebp], bx
cmp word [esi], 0
je 0x702145b2
cmp byte [esp + 0x13], 0
je 0x702145b2
add esi, 2
mov ebp, esi
mov byte [esp + 0x11], 1
jmp 0x70214398
cmp byte [esp + 0x11], 0
mov word [ebp], bx
lea ebx, [esp + 0x30]
jne 0x7021445b
cmp byte [esp + 0x12], 0
je 0x70214581
mov eax, dword [esp + 0x18]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x70214462
sub eax, edx
sar eax, 1
lea esi, [eax + eax + 6]
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edx, eax
mov dword [esp + 0x14], edx
test edx, edx
je 0x70214605
shr esi, 1
je 0x702144a9
cmp esi, 0x7fffffff
ja 0x702144a9
push 0x70327278
mov eax, SysReAllocString
mov ecx, esi
call fcn.7020f5f0
cmp byte [esp + 0x11], 0
je 0x702144be
movzx edx, word [ebp]
xor eax, eax
mov dword [esp + 0x24], edx
mov word [ebp], ax
test esi, esi
je 0x70214538
cmp esi, 0x7fffffff
ja 0x702144fb
mov edx, dword [esp + 0x14]
lea edi, [esp + 0x1c]
mov ecx, esi
call fcn.7021b690
test eax, eax
jl 0x702144fb
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
push ecx
mov ecx, esi
sub ecx, eax
lea edx, [edx + eax*2]
mov eax, SysReAllocString
call fcn.7020f5f0
test esi, esi
je 0x70214538
cmp esi, 0x7fffffff
ja 0x70214538
mov edx, dword [esp + 0x14]
lea edi, [esp + 0x1c]
mov ecx, esi
call fcn.7021b690
test eax, eax
jl 0x70214538
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
mov ecx, esi
sub ecx, eax
lea edx, [edx + eax*2]
push 0x70327278
mov eax, SysReAllocString
call fcn.7020f5f0
cmp byte [esp + 0x11], 0
je 0x70214581
mov ax, word [esp + 0x24]
mov word [ebp], ax
test esi, esi
je 0x70214581
cmp esi, 0x7fffffff
ja 0x70214581
mov edx, dword [esp + 0x14]
lea edi, [esp + 0x1c]
mov ecx, esi
call fcn.7021b690
test eax, eax
jl 0x70214581
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
mov ecx, esi
sub ecx, eax
lea edx, [edx + eax*2]
push ebp
mov eax, SysReAllocString
call fcn.7020f5f0
mov esi, dword [esp + 0x18]
mov edi, dword [sym.imp.SHLWAPI.dll_StrDupW]
push ebx
call edi
cmp byte [esp + 0x11], 0
mov ecx, dword [esp + 0x28]
mov dword [ecx], eax
jne 0x7021462a
cmp byte [esp + 0x12], 0
jne 0x7021462a
mov ebx, dword [esp + 0x14]
mov eax, esi
jmp 0x70214630
mov ecx, dword [esp + 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
mov ecx, dword [esp + 0x238]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.702e1c2f
add esp, 0x22c
ret
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x702145bd
push ebx
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x702145bd
test esi, esi
je 0x702145f7
cmp word [esi], bp
jne 0x70214585
mov byte [esp + 0x12], 1
mov dword [esp + 0x18], ebx
jmp 0x7021445b
cmp byte [esp + 0x11], 0
je 0x70214611
mov byte [esp + 0x11], 0
cmp byte [esp + 0x12], 0
mov esi, dword [esp + 0x18]
je 0x70214585
mov byte [esp + 0x12], 0
jmp 0x70214585
mov ebx, dword [esp + 0x14]
mov eax, ebx
push eax
call edi
mov edx, dword [esp + 0x2c]
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [edx], eax
mov eax, dword [esp + 0x20]
test eax, eax
je 0x7021464a
push eax
call esi
test ebx, ebx
je 0x70214651
push ebx
call esi
mov eax, 1
jmp 0x702145bf