Function at 0x402c30
Capabilities:
Create directory
Delete directory
Delete file
Enumerate files on windows
Get common file path
Move file

Disassembly:
sub esp, 0x96c
mov eax, dword [0x43ec10]
push ebx
push ebp
push esi
mov dword [esp + 0x974], eax
push edi
lea eax, [esp + 0x11c]
push eax
mov ebp, ecx
push 0x104
mov dword [esp + 0x1c], ebp
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp + 0x538]
mov dword [esp + 0x10], eax
mov edx, eax
jmp 0x402c70
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402c70
lea edi, [esp + 0x11c]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x402c81
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor eax, eax
jmp 0x402ca0
mov cl, byte [esp + eax + 0x11c]
mov byte [esp + eax + 0x18], cl
inc eax
test cl, cl
jne 0x402ca0
lea edi, [esp + 0x18]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x402cb5
mov cx, word [0x430610]
mov word [edi], cx
lea edi, [esp + 0x11c]
dec edi
nop
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x402cd0
mov edx, dword [str..]
mov al, byte [0x43086c]
mov dword [edi], edx
lea ecx, [esp + 0x220]
push ecx
lea edx, [esp + 0x120]
push edx
mov byte [edi + 4], al
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
mov esi, eax
cmp esi, 0xffffffff
je 0x402d54
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [esp + 0x24c]
push eax
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x87c]
push str._s_s
push edx
call ebx
add esp, 0x10
lea eax, [esp + 0x874]
push eax
call edi
lea ecx, [esp + 0x220]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x402d11
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0
lea edx, [esp + 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
add ebp, 0x330
lea edx, [esp + 0x464]
mov eax, ebp
sub edx, ebp
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x402d72
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x360]
sub edx, eax
lea esp, [esp]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x402d90
lea edi, [esp + 0x360]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x402da2
mov eax, dword [str..html]
mov cx, word [0x43085c]
mov dword [edi], eax
lea eax, [esp + 0x360]
mov word [edi + 4], cx
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402dc5
lea edi, [esp + 0x464]
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x402dd6
mov edx, dword [esp + 0x10]
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push edx
and ecx, 3
lea eax, [esp + 0x1c]
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x570]
push str._s_s.html
push ecx
call ebx
mov edi, dword [esp + 0x24]
lea esi, [edi + 0x14]
lea ecx, [esp + 0x67c]
add esp, 0x10
mov eax, esi
sub ecx, esi
lea ebx, [ebx]
mov dl, byte [eax]
mov byte [ecx + eax], dl
inc eax
test dl, dl
jne 0x402e20
lea edx, [esp + 0x568]
push edx
push esi
mov ecx, edi
call fcn.00401ef0
test eax, eax
je 0x402eb6
push esi
lea eax, [esp + 0x56c]
push eax
mov ecx, edi
call fcn.00402000
cmp eax, 0xffffffff
je 0x402f87
lea edx, [esp + 0x770]
mov eax, ebp
sub edx, ebp
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x402e62
mov eax, dword [esp + 0x10]
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402e72
lea edi, [esp + 0x770]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x402e83
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x770]
push 0x430848
push ecx
call fcn.00411391
mov esi, eax
add esp, 8
test esi, esi
jne 0x402ecf
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x968]
call fcn.00410a9d
add esp, 0x96c
ret
lea edx, [esp + 0x360]
push edx
push 0x43078c
push esi
call fcn.0041165d
push esi
call fcn.0041128c
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x130]
push str._s.
push ecx
call ebx
add esp, 0x1c
lea edx, [esp + 0x220]
push edx
lea eax, [esp + 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x402f87
mov edi, dword [sym.imp.KERNEL32.dll_MoveFileExA]
lea ecx, [esp + 0x24c]
push ecx
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x674]
push str._s_s
push eax
call ebx
lea ecx, [esp + 0x25c]
push ecx
push ebp
lea edx, [esp + 0x47c]
push str._s_s
push edx
call ebx
add esp, 0x20
push 3
lea eax, [esp + 0x468]
push eax
lea ecx, [esp + 0x674]
push ecx
call edi
lea edx, [esp + 0x220]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x402f22
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov ecx, dword [esp + 0x978]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
call fcn.00410a9d
add esp, 0x96c
ret