Function at 0x438350
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Get common file path
Move file
Set current directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x489912
mov eax, dword fs:[0]
push eax
sub esp, 0x4cc
mov eax, dword [0x4ab4ec]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 0x28]
xor ebx, ebx
mov dword [ebp - 0x478], ecx
mov dword [ebp - 0x470], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x468]
push eax
push 0x490480
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x474], eax
cmp eax, 0xffffffff
jne 0x4383d0
mov dword [ebp - 4], eax
cmp dword [ebp + 0x20], 8
jb 0x4383c4
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.00456b63
add esp, 4
xor edx, edx
mov word [ebp + 0xc], dx
jmp 0x43871f
test byte [ebp - 0x468], 0x10
mov esi, 7
je 0x438608
xor eax, eax
mov word [ebp - 0x490], ax
lea eax, [ebp - 0x43c]
mov dword [ebp - 0x47c], esi
mov dword [ebp - 0x480], ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x438400
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x43c]
push ecx
lea ecx, [ebp - 0x494]
call fcn.00405130
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x480]
or dword [ebp - 0x470], 1
push 1
push 0x48e874
push edx
push ebx
lea ecx, [ebp - 0x494]
call fcn.0040df90
test eax, eax
je 0x4384c4
xor eax, eax
mov word [ebp - 0x4ac], ax
lea eax, [ebp - 0x43c]
mov dword [ebp - 0x498], esi
mov dword [ebp - 0x49c], ebx
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x438470
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x43c]
push ecx
lea ecx, [ebp - 0x4b0]
call fcn.00405130
mov eax, 2
mov dword [ebp - 4], eax
mov edx, dword [ebp - 0x49c]
or dword [ebp - 0x470], eax
push eax
push 0x490478
push edx
push ebx
lea ecx, [ebp - 0x4b0]
call fcn.0040df90
mov byte [ebp - 0x469], 1
test eax, eax
jne 0x4384ca
mov byte [ebp - 0x469], bl
mov dword [ebp - 4], 1
test byte [ebp - 0x470], 2
je 0x43850e
and dword [ebp - 0x470], 0xfffffffd
cmp dword [ebp - 0x498], 8
jb 0x4384f9
mov eax, dword [ebp - 0x4ac]
push eax
call fcn.00456b63
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x498], esi
mov dword [ebp - 0x49c], ebx
mov word [ebp - 0x4ac], cx
mov dword [ebp - 4], ebx
test byte [ebp - 0x470], 1
je 0x43854e
and dword [ebp - 0x470], 0xfffffffe
cmp dword [ebp - 0x47c], 8
jb 0x438539
mov edx, dword [ebp - 0x490]
push edx
call fcn.00456b63
add esp, 4
xor eax, eax
mov dword [ebp - 0x47c], esi
mov dword [ebp - 0x480], ebx
mov word [ebp - 0x490], ax
cmp byte [ebp - 0x469], bl
je 0x4386d7
lea ecx, [ebp - 0x218]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea edx, [ebp - 0x43c]
push edx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov eax, dword [ebp + 0x24]
push edi
push eax
sub esp, 0x1c
mov ecx, esp
mov dword [ecx + 0x18], esi
xor edx, edx
lea eax, [ebp - 0x43c]
mov dword [ecx + 0x14], ebx
mov dword [ebp - 0x4d8], esp
mov word [ecx + 4], dx
lea esi, [eax + 2]
mov edi, edi
mov dx, word [eax]
add eax, 2
cmp dx, bx
jne 0x4385a0
sub eax, esi
sar eax, 1
push eax
lea eax, [ebp - 0x43c]
push eax
call fcn.00405130
mov byte [ebp - 4], 3
mov byte [ebp - 4], bl
mov ecx, dword [ebp - 0x478]
call fcn.00438350
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea edx, [ebp - 0x43c]
push edx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x4386d7
cmp byte [ebp + 0x24], bl
je 0x4386d7
push 4
push ebx
lea eax, [ebp - 0x43c]
push eax
jmp 0x4386d1
xor ecx, ecx
lea eax, [ebp - 0x43c]
mov dword [ebp - 0x4bc], esi
mov dword [ebp - 0x4c0], ebx
mov word [ebp - 0x4d0], cx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x438626
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x43c]
push edx
lea ecx, [ebp - 0x4d4]
call fcn.00405130
mov byte [ebp - 4], 4
lea eax, [ebp - 0x4d4]
push eax
lea ecx, [ebp - 0x4b8]
push ecx
mov ecx, edi
call fcn.004382c0
mov byte [ebp - 4], bl
cmp dword [ebp - 0x4bc], 8
jb 0x43867c
mov edx, dword [ebp - 0x4d0]
push edx
call fcn.00456b63
add esp, 4
mov ecx, dword [ebp - 0x4b8]
xor eax, eax
mov dword [ebp - 0x4bc], esi
mov esi, dword [edi + 0x18]
mov word [ebp - 0x4d0], ax
mov eax, dword [edi]
mov dword [ebp - 0x4c0], ebx
cmp ecx, ebx
je 0x4386a4
cmp ecx, eax
je 0x4386a9
call fcn.0045747f
cmp dword [ebp - 0x4b4], esi
jne 0x4386d7
lea ecx, [ebp - 0x43c]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4386d7
cmp byte [ebp + 0x24], bl
je 0x4386d7
push 4
push ebx
lea edx, [ebp - 0x43c]
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov ecx, dword [ebp - 0x474]
lea eax, [ebp - 0x468]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4383d0
mov edx, dword [ebp - 0x474]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp + 0x20], 8
jb 0x438719
mov eax, dword [ebp + 0xc]
push eax
call fcn.00456b63
add esp, 4
xor ecx, ecx
mov word [ebp + 0xc], cx
mov al, 1
mov dword [ebp + 0x1c], ebx
mov dword [ebp + 0x20], 7
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0045718a
mov esp, ebp
pop ebp
ret 0x24