Function at 0x429350
Capabilities:
Check if file exists
Delete directory
Get file attributes
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48cf98
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x4b3074]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00429a30
mov esi, dword [ebp - 0x10]
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, dword [ebp - 0x14]
mov ebx, eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp ebx, 0xffffffff
je 0x429541
cmp eax, 0xffffffff
je 0x429541
test al, 0x10
jne 0x4293cb
shr ebx, 4
not ebx
and ebx, 1
or ebx, 2
push ebx
jmp 0x429543
mov esi, dword [ebp + 8]
push 0x2f
push esi
call fcn.00433ab0
mov edi, eax
add esp, 8
mov dword [ebp - 0x1c], edi
test edi, edi
jne 0x4293f0
push 0x5c
push esi
call fcn.00433ab0
add esp, 8
mov dword [ebp - 0x1c], eax
mov esi, dword [ebp + 0xc]
push 0x2f
push esi
call fcn.00433ab0
add esp, 8
lea ecx, [esi + 1]
neg eax
sbb al, al
and al, 0xd3
add al, 0x5c
mov dword [ebp - 0x18], eax
nop dword [eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x429410
sub esi, ecx
mov eax, 0
mov dword [ebp - 0x28], esi
setne al
add eax, esi
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x2c], eax
je 0x42943b
push eax
call fcn.00421350
add esp, 4
mov edi, eax
jmp 0x42943d
xor edi, edi
push esi
push dword [ebp + 0xc]
mov dword [ebp - 0x24], edi
push edi
call fcn.00432c00
add esp, 0xc
mov dword [ebp - 4], 0
test esi, esi
je 0x429461
mov eax, dword [ebp - 0x18]
cmp byte [esi + edi - 1], al
je 0x429493
mov ecx, dword [ebp - 0x20]
lea eax, [esi + 2]
cmp ecx, eax
jae 0x429487
mov eax, ecx
shr eax, 1
add eax, 2
add eax, ecx
push eax
push ecx
push edi
mov dword [ebp - 0x2c], eax
call fcn.00421c10
mov edi, eax
add esp, 0xc
mov dword [ebp - 0x24], edi
mov eax, dword [ebp - 0x18]
mov byte [esi + edi], al
lea eax, [esi + 1]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x1c]
mov esi, dword [ebp + 8]
lea edx, [eax + 1]
test eax, eax
jne 0x4294a2
mov edx, esi
mov ecx, edx
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4294a7
sub ecx, edi
push ecx
push edx
lea ecx, [ebp - 0x2c]
call fcn.0041b000
mov ecx, dword [ebp - 0x24]
test ecx, ecx
je 0x4294d0
mov eax, dword [ebp - 0x28]
cmp byte [ecx + eax], 0
je 0x4294d5
mov byte [ecx + eax], 0
jmp 0x4294d5
mov ecx, 0x4a1b14
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push ecx
push esi
call fcn.00429a30
mov esi, dword [ebp - 0x14]
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x429514
test al, 0x10
jne 0x429508
shr ebx, 4
not ebx
and ebx, 1
or ebx, 2
push ebx
jmp 0x429516
test bl, 0x10
je 0x429514
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
push 2
push esi
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
lea ecx, [ebp - 0x2c]
setne bl
call fcn.0041b270
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 2
push edi
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
setne al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret