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

Disassembly:
sub esp, 0x43c
push ebx
push ebp
mov ebp, dword [esp + 0x448]
push esi
mov esi, edx
push edi
cmp ebp, 1
je 0x47e7a1
cmp ebp, 2
je 0x47e7a1
xor bh, bh
jmp 0x47e7a3
mov bh, 1
mov edi, dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x38]
push eax
push 0x104
push ecx
call edi
lea ecx, [esp + 0x34]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x47e7c2
sub ecx, edx
sar ecx, 1
je 0x47e7e2
cmp word [esp + ecx*2 + 0x32], 0x5c
jne 0x47e7e2
xor eax, eax
mov word [esp + ecx*2 + 0x32], ax
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x244]
push eax
push 0x104
push esi
call edi
lea ecx, [esp + 0x240]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x47e801
sub ecx, edx
sar ecx, 1
je 0x47e827
cmp word [esp + ecx*2 + 0x23e], 0x5c
jne 0x47e827
xor eax, eax
mov word [esp + ecx*2 + 0x23e], ax
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x47e9fc
test al, 0x10
je 0x47e9fc
mov bl, byte [esp + 0x454]
test bl, bl
je 0x47e8de
movzx edi, word [esp + 0x34]
mov ebp, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__isctype]
test edi, 0xffffff80
jne 0x47e874
push 1
push edi
call ebp
add esp, 8
test eax, eax
je 0x47e874
or edi, 0x20
movzx esi, word [esp + 0x240]
test esi, 0xffffff80
jne 0x47e893
push 1
push esi
call ebp
add esp, 8
test eax, eax
je 0x47e893
or esi, 0x20
cmp di, si
jne 0x47e8a0
cmp word [esp + 0x36], 0x3a
je 0x47e8d7
movzx eax, bh
lea edx, [esp + 0x240]
push 0
push eax
lea ecx, [esp + 0x3c]
call fcn.0047e780
add esp, 8
test al, al
je 0x47e9fc
mov dl, 1
lea ecx, [esp + 0x34]
call fcn.0047ea10
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x43c
ret
mov ebp, dword [esp + 0x450]
lea eax, [esp + 0x240]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x47e907
test al, 0x10
je 0x47e9fc
test bh, bh
je 0x47e9fc
test bl, bl
jne 0x47e955
jmp 0x47e921
test bl, bl
jne 0x47e955
xor edx, edx
lea ecx, [esp + 0x240]
call fcn.00461a40
test al, al
je 0x47e9fc
lea ecx, [esp + 0x34]
add ecx, 0xfffffffe
nop dword [eax + eax]
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x47e930
mov eax, dword [0x4edd50]
mov dword [ecx], eax
mov eax, dword [0x4edd54]
mov dword [ecx + 4], eax
mov ax, word [0x4edd58]
mov word [ecx + 8], ax
lea ecx, [esp + 0x34]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x47e960
sub ecx, edx
sar ecx, 1
xor eax, eax
mov word [esp + ecx*2 + 0x36], ax
lea ecx, [esp + 0x240]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x47e980
xor eax, eax
sub ecx, edx
sar ecx, 1
xorps xmm0, xmm0
mov dword [esp + 0x14], eax
mov dword [esp + 0x2e], eax
movlpd qword [esp + 0x26], xmm0
mov word [esp + ecx*2 + 0x242], ax
lea eax, [esp + 0x34]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x240]
mov dword [esp + 0x20], eax
movzx eax, bl
xor eax, 1
inc eax
mov dword [esp + 0x18], eax
mov eax, 0x614
mov word [esp + 0x24], ax
cmp ebp, 2
jne 0x47e9e1
mov eax, 0x615
mov word [esp + 0x24], ax
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
pop edi
pop esi
test eax, eax
pop ebp
sete al
pop ebx
add esp, 0x43c
ret
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x43c
ret