Function at 0x478050
Capabilities:
Create directory
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49609b
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 0x4780f7
cmp dword [edi], 2
sete al
test al, al
je 0x4780a6
call fcn.00477fd0
jmp 0x4780ab
call fcn.004776f0
cmp eax, esi
sete al
mov dword [ebx], esi
test al, al
jne 0x4780f7
mov edi, 8
cmp dword [ebp + 0x1c], edi
jb 0x4780cc
mov eax, dword [ebp + 8]
push eax
call fcn.00480641
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 0x4780ed
mov edx, dword [ebp + 0x24]
push edx
call fcn.00480641
add esp, 4
mov eax, 1
jmp 0x47851a
mov eax, dword [ebp + 8]
mov edi, 8
cmp dword [ebp + 0x1c], edi
jae 0x478107
lea eax, [ebp + 8]
push eax
call fcn.00477550
add esp, 4
mov dword [ebx], eax
cmp eax, esi
jne 0x478152
cmp dword [ebp + 0x1c], edi
jb 0x478127
mov eax, dword [ebp + 8]
push eax
call fcn.00480641
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 0x478148
mov edx, dword [ebp + 0x24]
push edx
call fcn.00480641
add esp, 4
mov eax, 2
jmp 0x47851a
cmp dword [eax], 1
je 0x478163
mov dword [0x4aca74], 0x80000
jmp 0x478176
mov esi, dword [eax + 4]
call fcn.00476970
mov dword [0x4aca74], eax
test eax, eax
je 0x4781b2
xor esi, esi
cmp dword [ebp + 0x1c], edi
jb 0x478187
mov eax, dword [ebp + 8]
push eax
call fcn.00480641
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 0x4781a8
mov edx, dword [ebp + 0x24]
push edx
call fcn.00480641
add esp, 4
mov eax, 3
jmp 0x47851a
mov eax, dword [ebx]
push 0xffffffffffffffff
lea edx, [ebp - 0x2b4]
call fcn.00477660
add esp, 4
test eax, eax
je 0x4781e2
lea esi, [ebp + 8]
call fcn.004018c0
lea esi, [ebp + 0x24]
call fcn.004018c0
mov eax, 4
jmp 0x47851a
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 0x4783df
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 0x478401
cmp dword [eax], 1
jne 0x47840d
mov ecx, dword [eax + 4]
push edi
lea edx, [ebp - 0x2b4]
call fcn.004769e0
mov dword [0x4aca74], eax
cmp eax, esi
jne 0x478417
cmp dword [ebp - 0xa8], 0x10
push 0x49a334
lea edx, [ebp + 0x24]
push edx
je 0x47831c
lea eax, [ebp - 0x4c]
push eax
call fcn.00478580
add esp, 0xc
push eax
lea eax, [ebp - 0x2b0]
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 3
call fcn.00478670
add esp, 4
mov byte [ebp - 4], 4
cmp dword [eax + 0x14], 8
jb 0x47828a
mov edx, dword [eax]
jmp 0x47828c
mov edx, eax
mov eax, dword [ebx]
push edi
call fcn.004776b0
add esp, 4
test eax, eax
mov esi, 8
setne bl
cmp dword [ebp - 0x1c], esi
jb 0x4782b2
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.00480641
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 0x4782db
mov eax, dword [ebp - 0x4c]
push eax
call fcn.00480641
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 0x4783c4
mov esi, dword [ebp - 0x2b8]
call fcn.00478540
lea esi, [ebp + 8]
call fcn.004018c0
lea esi, [ebp + 0x24]
call fcn.004018c0
mov eax, 7
jmp 0x47851a
lea eax, [ebp - 0x84]
push eax
call fcn.00478580
add esp, 0xc
push eax
lea eax, [ebp - 0x2b0]
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 2
call fcn.00478670
add esp, 4
cmp dword [eax + 0x14], 8
jb 0x478349
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 0x47836c
mov ecx, dword [ebp - 0x68]
push ecx
call fcn.00480641
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 0x478396
mov eax, dword [ebp - 0x84]
push eax
call fcn.00480641
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 0x4783be
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x478463
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 0x478200
mov edi, dword [ebx]
cmp edi, esi
je 0x47848f
cmp dword [edi], 2
sete al
test al, al
je 0x478488
call fcn.00477fd0
jmp 0x47848d
mov dword [0x4aca74], 0x10000
jmp 0x478417
mov dword [0x4aca74], 0x80000
mov esi, ebx
call fcn.00478540
mov esi, 8
cmp dword [ebp + 0x1c], esi
jb 0x478434
mov edx, dword [ebp + 8]
push edx
call fcn.00480641
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 0x478459
mov ecx, dword [ebp + 0x24]
push ecx
call fcn.00480641
add esp, 4
mov eax, 5
jmp 0x47851a
mov esi, dword [ebp - 0x2b8]
call fcn.00478540
lea esi, [ebp + 8]
call fcn.004018c0
lea esi, [ebp + 0x24]
call fcn.004018c0
mov eax, 6
jmp 0x47851a
call fcn.004776f0
mov dword [ebx], esi
cmp byte [ebp + 0x40], 0
mov edi, 8
je 0x4784e6
mov eax, dword [ebp + 8]
cmp dword [ebp + 0x1c], edi
jae 0x4784a5
lea eax, [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4784e6
cmp dword [ebp + 0x1c], edi
jb 0x4784c1
mov edx, dword [ebp + 8]
push edx
call fcn.00480641
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 0x4784e2
mov ecx, dword [ebp + 0x24]
push ecx
call fcn.00480641
add esp, 4
mov eax, edi
jmp 0x47851a
cmp dword [ebp + 0x1c], edi
jb 0x4784f7
mov edx, dword [ebp + 8]
push edx
call fcn.00480641
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 0x478518
mov ecx, dword [ebp + 0x24]
push ecx
call fcn.00480641
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.0048014c
mov esp, ebp
pop ebp
ret 0x3c