Function at 0x478120
Capabilities:
Create directory
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49636b
mov eax, dword fs:[0]
push eax
sub esp, 0x2b8
mov eax, dword [0x4a93dc]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x2b8], ebx
mov dword [ebp - 4], 1
mov edi, dword [ebx]
xor esi, esi
cmp edi, esi
je 0x4781c7
cmp dword [edi], 2
sete al
test al, al
je 0x478176
call fcn.004780a0
jmp 0x47817b
call fcn.004777c0
cmp eax, esi
sete al
mov dword [ebx], esi
test al, al
jne 0x4781c7
mov edi, 8
cmp dword [ebp + 0x1c], edi
jb 0x47819c
mov eax, dword [ebp + 8]
push eax
call fcn.00480861
add esp, 4
xor ecx, ecx
mov dword [ebp + 0x1c], 7
mov dword [ebp + 0x18], esi
mov word [ebp + 8], cx
cmp dword [ebp + 0x38], edi
jb 0x4781bd
mov edx, dword [ebp + 0x24]
push edx
call fcn.00480861
add esp, 4
mov eax, 1
jmp 0x4785ea
mov eax, dword [ebp + 8]
mov edi, 8
cmp dword [ebp + 0x1c], edi
jae 0x4781d7
lea eax, [ebp + 8]
push eax
call fcn.00477620
add esp, 4
mov dword [ebx], eax
cmp eax, esi
jne 0x478222
cmp dword [ebp + 0x1c], edi
jb 0x4781f7
mov eax, dword [ebp + 8]
push eax
call fcn.00480861
add esp, 4
xor ecx, ecx
mov dword [ebp + 0x1c], 7
mov dword [ebp + 0x18], esi
mov word [ebp + 8], cx
cmp dword [ebp + 0x38], edi
jb 0x478218
mov edx, dword [ebp + 0x24]
push edx
call fcn.00480861
add esp, 4
mov eax, 2
jmp 0x4785ea
cmp dword [eax], 1
je 0x478233
mov dword [0x4aca74], 0x80000
jmp 0x478246
mov esi, dword [eax + 4]
call fcn.00476a40
mov dword [0x4aca74], eax
test eax, eax
je 0x478282
xor esi, esi
cmp dword [ebp + 0x1c], edi
jb 0x478257
mov eax, dword [ebp + 8]
push eax
call fcn.00480861
add esp, 4
xor ecx, ecx
mov dword [ebp + 0x1c], 7
mov dword [ebp + 0x18], esi
mov word [ebp + 8], cx
cmp dword [ebp + 0x38], edi
jb 0x478278
mov edx, dword [ebp + 0x24]
push edx
call fcn.00480861
add esp, 4
mov eax, 3
jmp 0x4785ea
mov eax, dword [ebx]
push 0xffffffffffffffff
lea edx, [ebp - 0x2b4]
call fcn.00477730
add esp, 4
test eax, eax
je 0x4782b2
lea esi, [ebp + 8]
call fcn.00401870
lea esi, [ebp + 0x24]
call fcn.00401870
mov eax, 4
jmp 0x4785ea
mov eax, dword [ebp - 0x2b4]
xor esi, esi
xor edi, edi
mov dword [ebp - 0x2c0], eax
mov dword [ebp - 0x2bc], edi
cmp eax, esi
jle 0x4784af
mov eax, dword [ebx]
xor ecx, ecx
mov dword [ebp - 0x2b4], esi
mov word [ebp - 0x2b0], cx
mov dword [ebp - 0x88], esi
cmp eax, esi
je 0x4784d1
cmp dword [eax], 1
jne 0x4784dd
mov ecx, dword [eax + 4]
push edi
lea edx, [ebp - 0x2b4]
call fcn.00476ab0
mov dword [0x4aca74], eax
cmp eax, esi
jne 0x4784e7
cmp dword [ebp - 0xa8], 0x10
push 0x49a32c
lea edx, [ebp + 0x24]
push edx
je 0x4783ec
lea eax, [ebp - 0x4c]
push eax
call fcn.00478650
add esp, 0xc
push eax
lea eax, [ebp - 0x2b0]
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 3
call fcn.00478740
add esp, 4
mov byte [ebp - 4], 4
cmp dword [eax + 0x14], 8
jb 0x47835a
mov edx, dword [eax]
jmp 0x47835c
mov edx, eax
mov eax, dword [ebx]
push edi
call fcn.00477780
add esp, 4
test eax, eax
mov esi, 8
setne bl
cmp dword [ebp - 0x1c], esi
jb 0x478382
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.00480861
add esp, 4
xor edx, edx
mov byte [ebp - 4], 1
mov dword [ebp - 0x1c], 7
mov dword [ebp - 0x20], 0
mov word [ebp - 0x30], dx
cmp dword [ebp - 0x38], esi
jb 0x4783ab
mov eax, dword [ebp - 0x4c]
push eax
call fcn.00480861
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x38], 7
mov dword [ebp - 0x3c], 0
mov word [ebp - 0x4c], cx
test bl, bl
je 0x478494
mov esi, dword [ebp - 0x2b8]
call fcn.00478610
lea esi, [ebp + 8]
call fcn.00401870
lea esi, [ebp + 0x24]
call fcn.00401870
mov eax, 7
jmp 0x4785ea
lea eax, [ebp - 0x84]
push eax
call fcn.00478650
add esp, 0xc
push eax
lea eax, [ebp - 0x2b0]
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 2
call fcn.00478740
add esp, 4
cmp dword [eax + 0x14], 8
jb 0x478419
mov eax, dword [eax]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
mov esi, 8
sete bl
cmp dword [ebp - 0x54], esi
jb 0x47843c
mov ecx, dword [ebp - 0x68]
push ecx
call fcn.00480861
add esp, 4
xor edi, edi
xor edx, edx
mov byte [ebp - 4], 1
mov dword [ebp - 0x54], 7
mov dword [ebp - 0x58], edi
mov word [ebp - 0x68], dx
cmp dword [ebp - 0x70], esi
jb 0x478466
mov eax, dword [ebp - 0x84]
push eax
call fcn.00480861
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x70], 7
mov dword [ebp - 0x74], edi
mov word [ebp - 0x84], cx
test bl, bl
je 0x47848e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x478533
mov edi, dword [ebp - 0x2bc]
mov ebx, dword [ebp - 0x2b8]
inc edi
xor esi, esi
mov dword [ebp - 0x2bc], edi
cmp edi, dword [ebp - 0x2c0]
jl 0x4782d0
mov edi, dword [ebx]
cmp edi, esi
je 0x47855f
cmp dword [edi], 2
sete al
test al, al
je 0x478558
call fcn.004780a0
jmp 0x47855d
mov dword [0x4aca74], 0x10000
jmp 0x4784e7
mov dword [0x4aca74], 0x80000
mov esi, ebx
call fcn.00478610
mov esi, 8
cmp dword [ebp + 0x1c], esi
jb 0x478504
mov edx, dword [ebp + 8]
push edx
call fcn.00480861
add esp, 4
xor eax, eax
mov dword [ebp + 0x1c], 7
mov dword [ebp + 0x18], 0
mov word [ebp + 8], ax
cmp dword [ebp + 0x38], esi
jb 0x478529
mov ecx, dword [ebp + 0x24]
push ecx
call fcn.00480861
add esp, 4
mov eax, 5
jmp 0x4785ea
mov esi, dword [ebp - 0x2b8]
call fcn.00478610
lea esi, [ebp + 8]
call fcn.00401870
lea esi, [ebp + 0x24]
call fcn.00401870
mov eax, 6
jmp 0x4785ea
call fcn.004777c0
mov dword [ebx], esi
cmp byte [ebp + 0x40], 0
mov edi, 8
je 0x4785b6
mov eax, dword [ebp + 8]
cmp dword [ebp + 0x1c], edi
jae 0x478575
lea eax, [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4785b6
cmp dword [ebp + 0x1c], edi
jb 0x478591
mov edx, dword [ebp + 8]
push edx
call fcn.00480861
add esp, 4
xor eax, eax
mov dword [ebp + 0x1c], 7
mov dword [ebp + 0x18], esi
mov word [ebp + 8], ax
cmp dword [ebp + 0x38], edi
jb 0x4785b2
mov ecx, dword [ebp + 0x24]
push ecx
call fcn.00480861
add esp, 4
mov eax, edi
jmp 0x4785ea
cmp dword [ebp + 0x1c], edi
jb 0x4785c7
mov edx, dword [ebp + 8]
push edx
call fcn.00480861
add esp, 4
xor eax, eax
mov dword [ebp + 0x1c], 7
mov dword [ebp + 0x18], esi
mov word [ebp + 8], ax
cmp dword [ebp + 0x38], edi
jb 0x4785e8
mov ecx, dword [ebp + 0x24]
push ecx
call fcn.00480861
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0048036c
mov esp, ebp
pop ebp
ret 0x3c