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

Disassembly:
sub esp, 0xe74
lea eax, [esp]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
push esi
push edi
push eax
lea eax, [esp + 0x48]
mov esi, edx
push eax
push 0x104
push ecx
call ebx
lea ecx, [esp + 0x44]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4710c0
sub ecx, edx
sar ecx, 1
je 0x4710e0
cmp word [esp + ecx*2 + 0x42], 0x5c
jne 0x4710e0
xor eax, eax
mov word [esp + ecx*2 + 0x42], ax
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x254]
push eax
push 0x104
push esi
call ebx
lea ecx, [esp + 0x250]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x471100
sub ecx, edx
sar ecx, 1
je 0x471126
cmp word [esp + ecx*2 + 0x24e], 0x5c
jne 0x471126
xor eax, eax
mov word [esp + ecx*2 + 0x24e], ax
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea eax, [esp + 0x44]
push eax
call esi
cmp eax, 0xffffffff
je 0x471366
test al, 0x10
je 0x471366
lea eax, [esp + 0x250]
push eax
call esi
mov edi, dword [esp + 0xe84]
cmp eax, 0xffffffff
je 0x471170
test al, 0x10
je 0x471366
cmp edi, 1
je 0x471170
cmp edi, 2
jne 0x471366
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x460]
push eax
push 0x104
lea eax, [esp + 0x50]
push eax
call ebx
lea ecx, [esp + 0x45c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x471193
sub ecx, edx
sar ecx, 1
je 0x4711b9
cmp word [esp + ecx*2 + 0x45a], 0x5c
jne 0x4711b9
xor eax, eax
mov word [esp + ecx*2 + 0x45a], ax
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x66c]
push eax
push 0x104
lea eax, [esp + 0x25c]
push eax
call ebx
lea ecx, [esp + 0x668]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4711e0
sub ecx, edx
sar ecx, 1
je 0x471206
cmp word [esp + ecx*2 + 0x666], 0x5c
jne 0x471206
xor eax, eax
mov word [esp + ecx*2 + 0x666], ax
mov esi, dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wsplitpath]
lea eax, [esp + 0x874]
push eax
lea eax, [esp + 0xa7c]
push eax
lea eax, [esp + 0xc84]
push eax
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x46c]
push eax
call esi
lea eax, [esp + 0x888]
push eax
lea eax, [esp + 0xa90]
push eax
lea eax, [esp + 0xc98]
push eax
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x68c]
push eax
call esi
add esp, 0x28
cmp word [esp + 0x18], 0
je 0x471338
cmp word [esp + 0x10], 0
je 0x471338
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
add esp, 8
test eax, eax
setne al
test al, al
jne 0x471338
lea ecx, [esp + 0x44]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4712a0
sub ecx, edx
sar ecx, 1
xor eax, eax
mov word [esp + ecx*2 + 0x46], ax
lea ecx, [esp + 0x250]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4712c0
sub ecx, edx
mov dword [esp + 0x24], 1
xor eax, eax
sar ecx, 1
mov dword [esp + 0x20], eax
xorps xmm0, xmm0
mov dword [esp + 0x3a], eax
movlpd qword [esp + 0x32], xmm0
mov word [esp + ecx*2 + 0x252], ax
lea eax, [esp + 0x44]
mov dword [esp + 0x28], eax
lea eax, [esp + 0x250]
mov dword [esp + 0x2c], eax
mov eax, 0x614
mov word [esp + 0x30], ax
cmp edi, 2
jne 0x47131e
mov eax, 0x615
mov word [esp + 0x30], ax
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
pop edi
test eax, eax
pop esi
sete al
pop ebx
add esp, 0xe74
ret
push 1
lea edx, [esp + 0x254]
lea ecx, [esp + 0x48]
call fcn.00470ee0
add esp, 4
test al, al
je 0x471366
mov dl, 1
lea ecx, [esp + 0x44]
call fcn.00471380
pop edi
pop esi
pop ebx
add esp, 0xe74
ret
pop edi
pop esi
xor al, al
pop ebx
add esp, 0xe74
ret