Function at 0x47872c
Capabilities:
Create directory
Delete file

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffdc0
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov dword [esp], eax
lea ebp, [esp + 0x134]
mov byte [esp + 0xc], 0
mov edx, dword [esp]
movsx edx, byte [edx + 0x55d]
mov eax, dword [0x48d340]
mov al, byte [eax + edx - 1]
cmp al, 3
je 0x478771
cmp dword [esp + 4], 0xffffffff
jne 0x478771
xor ecx, ecx
mov dword [esp + 4], ecx
cmp dword [esp + 4], 1
jbe 0x478787
mov eax, dword [esp]
mov eax, dword [eax + 0x4bc]
mov dword [esp + 0x18], eax
jmp 0x4787bf
mov ecx, dword [esp]
movsx ecx, byte [ecx + 0x55d]
mov ebx, dword [0x48d340]
cmp al, 3
jne 0x4787a5
mov byte [esp + 0xc], 1
jmp 0x478b9c
mov eax, dword [esp]
mov eax, dword [0x48d9a0]
movzx eax, word [eax + edx*2 + 0x4c]
mov edx, dword [esp]
imul dword [edx + 0x4f4]
mov dword [esp + 0x18], eax
push 4
push 0x1000
mov eax, dword [esp + 0x20]
push eax
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov edi, eax
test edi, edi
jne 0x4787f8
fild dword [esp + 0x18]
add esp, 0xfffffff8
fistp qword [esp]
wait
call fcn.00412abc
mov edx, eax
mov ax, 0xb
call fcn.0040de10
jmp 0x478b9c
cmp dword [esp + 4], 1
jbe 0x478832
mov edx, dword [esp]
add edx, 0x4a4
mov eax, dword [esp + 4]
call fcn.0041ea80
mov dword [esp + 0x234], eax
xor eax, eax
mov dword [esp + 0x238], eax
fild qword [esp + 0x234]
mov eax, dword [0x48d318]
fistp qword [eax]
wait
jmp 0x47885a
mov eax, dword [esp]
mov eax, dword [eax + 0x4b4]
mov dword [esp + 0x234], eax
xor eax, eax
mov dword [esp + 0x238], eax
fild qword [esp + 0x234]
mov eax, dword [0x48d318]
fistp qword [eax]
wait
mov eax, dword [esp]
movzx eax, word [eax + 0x4a4]
mov dword [esp + 0x23c], eax
fild dword [esp + 0x23c]
mov eax, dword [0x48d318]
fild qword [eax]
fmulp st(1)
mov eax, dword [0x48d318]
fistp qword [eax]
wait
mov eax, dword [esp + 0x18]
push eax
mov edx, dword [0x48d318]
mov eax, dword [esp + 4]
add eax, 0xc
mov ecx, edi
call fcn.004254a8
cmp eax, dword [esp + 0x18]
jl 0x478b13
mov byte [esp + 0xc], 1
cmp dword [esp + 4], 2
setbe dl
mov eax, edi
call fcn.0041e270
test al, al
je 0x478b13
mov byte [esp + 0x2d], 0
mov eax, dword [esp + 0x18]
test eax, eax
jns 0x4788d2
add eax, 0x1f
sar eax, 5
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
dec eax
test eax, eax
jl 0x478b0e
inc eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x10], 0
mov esi, dword [esp + 0x10]
shl esi, 5
add esi, edi
cmp byte [esi], 0
jne 0x47890b
mov byte [esp + 0x2d], 1
jmp 0x478b0e
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x34]
push eax
push 0
lea ecx, [esp + 0x44]
mov edx, edi
mov eax, esi
call fcn.0041d958
test al, al
je 0x478b00
cmp byte [esp + 0x34], 0x3f
jne 0x47893d
mov byte [esp + 0x34], 0x23
mov eax, ebp
mov edx, dword [esp + 8]
call fcn.00405c48
mov eax, ebp
call fcn.0040fb40
lea eax, [esp + 0x34]
push eax
push ebp
call sub.kernel32.dll_lstrcatA
xor ebx, ebx
jmp 0x4789a8
mov eax, ebp
mov edx, dword [esp + 8]
call fcn.00405c48
mov eax, ebp
call fcn.0040fb40
mov dword [esp + 0x23c], ebx
fild dword [esp + 0x23c]
add esp, 0xfffffff8
fistp qword [esp]
wait
call fcn.004123c0
push eax
push ebp
call sub.kernel32.dll_lstrcatA
push 0x478bac
push ebp
call sub.kernel32.dll_lstrcatA
lea eax, [esp + 0x34]
push eax
push ebp
call sub.kernel32.dll_lstrcatA
inc ebx
mov eax, ebp
call fcn.004125bc
test al, al
jne 0x47895e
cmp byte [esp + 0x2c], 0
jne 0x478a47
mov edx, dword [0x48d43c]
lea eax, [esp + 0x34]
call fcn.0040f80c
test al, al
je 0x478acc
mov eax, dword [0x48d550]
cmp byte [eax + 0x1890], 1
jne 0x4789e8
cmp byte [esi], 0xe5
je 0x478a0d
mov eax, dword [0x48d550]
cmp byte [eax + 0x1890], 2
jne 0x4789fb
cmp byte [esi], 0xe5
jne 0x478a0d
mov eax, dword [0x48d550]
cmp byte [eax + 0x1890], 0
jne 0x478acc
push dword [esp + 0x24]
push dword [esp + 0x24]
mov edx, ebp
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x30]
call fcn.00478244
test eax, eax
je 0x478b00
inc eax
jne 0x478a39
mov byte [esp + 0xc], 0
jmp 0x478b13
mov eax, ebp
mov edx, esi
call fcn.004705ec
jmp 0x478acc
mov eax, dword [0x48d550]
cmp byte [eax + 0x1831], 0
je 0x478acc
mov eax, dword [esp + 4]
cmp eax, dword [esp + 0x28]
je 0x478acc
mov eax, dword [0x48d550]
cmp byte [eax + 0x187b], 0
je 0x478a93
mov eax, ebp
call fcn.0040ca8c
test al, al
jne 0x478a8d
mov edx, ebp
mov ax, 3
call fcn.0040de10
mov byte [esp + 0xc], 0
jmp 0x478b13
push ebp
call sub.kernel32.dll_DeleteFileA_1
push 0
push ebp
call sub.kernel32.dll_CreateDirectoryA
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x478ab7
mov edx, ebp
mov ax, 3
call fcn.0040de10
mov byte [esp + 0xc], 0
jmp 0x478b13
mov eax, dword [0x48db5c]
inc dword [eax]
mov ecx, ebp
mov eax, dword [esp]
mov edx, dword [esp + 0x28]
call fcn.0047872c
mov eax, dword [0x48d480]
push dword [eax + 4]
push dword [eax]
mov eax, dword [0x48d8e8]
push eax
mov ecx, dword [0x48d384]
mov edx, dword [0x48db5c]
mov edx, dword [edx]
mov eax, dword [0x48d624]
mov eax, dword [eax]
call fcn.0040f628
mov eax, dword [0x48d9fc]
cmp byte [eax], 0
jne 0x478b13
inc dword [esp + 0x10]
dec dword [esp + 0x30]
jne 0x4788f3
mov byte [esp + 0xc], 1
push 0x4000
mov eax, dword [esp + 0x1c]
push eax
push edi
call sub.kernel32.dll_VirtualFree_1
cmp byte [esp + 0xc], 0
je 0x478b9c
cmp byte [esp + 0x2d], 0
jne 0x478b9c
mov eax, dword [0x48d9fc]
cmp byte [eax], 0
jne 0x478b9c
mov edx, dword [esp + 4]
inc edx
mov eax, dword [esp]
mov ecx, dword [esp + 8]
call fcn.0047872c
mov eax, dword [esp]
cmp dword [eax + 0x4c4], 0
je 0x478b9c
push 0
mov eax, dword [esp + 4]
movsx eax, byte [eax + 0x55d]
mov edx, dword [0x48d340]
mov cl, byte [edx + eax - 1]
mov eax, dword [esp + 4]
add eax, 0x4a4
mov edx, dword [esp + 8]
call fcn.0041f554
cmp eax, 1
jbe 0x478b9c
mov edx, dword [esp + 4]
inc edx
cmp eax, edx
je 0x478b9c
mov edx, dword [esp]
mov ecx, dword [esp + 8]
xchg edx, eax
call fcn.0047872c
mov al, byte [esp + 0xc]
add esp, 0x240
pop ebp
pop edi
pop esi
pop ebx
ret