Function at 0x427980
Capabilities:
Create directory
Delete directory
Get disk size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x516260
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x56e754]
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 eax, edx
mov dword [ebp - 0x60], eax
mov ebx, ecx
mov byte [ebp - 0x29], 0
test eax, eax
je 0x4279c7
mov dword [eax], 0
mov dword [eax + 4], 0
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4279d0
sub ecx, edx
sar ecx, 1
cmp ecx, 3
jb 0x427d7f
push 2
push 0x542744
push ebx
call fcn.004efeec
add esp, 0xc
test eax, eax
je 0x427d7f
cmp word [ebx + 2], 0x3a
jne 0x427d7f
cmp word [ebx + 4], 0x5c
jne 0x427d7f
xor edx, edx
xor eax, eax
xor esi, esi
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x48], edx
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 4], eax
xor edi, edi
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x58], edi
mov dword [ebp - 0x54], edi
mov dword [ebp - 0x70], edi
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x68], edi
mov dword [ebp - 0x64], edi
push 0x544f50
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.0041a770
push ebx
mov byte [ebp - 4], 3
call fcn.004f062f
mov edx, eax
mov dword [ebp - 0x34], edi
mov ebx, edx
mov dword [ebp - 0x50], edx
add esp, 4
lea ecx, [ebx + 2]
mov ax, word [ebx]
add ebx, 2
test ax, ax
jne 0x427a70
sub ebx, ecx
mov ecx, 3
sar ebx, 1
mov dword [ebp - 0x4c], ecx
cmp ebx, ecx
jbe 0x427b15
mov eax, 2
mov dword [ebp - 0x30], 0
sub eax, edx
lea edi, [edx + 6]
mov dword [ebp - 0x38], eax
xor edx, edx
movzx eax, word [edi]
cmp eax, 0x5c
je 0x427ab2
cmp eax, 0x2f
jne 0x427b00
mov ecx, dword [ebp - 0x4c]
xor eax, eax
mov word [edi], ax
mov eax, dword [ebp - 0x30]
add eax, dword [ebp - 0x50]
cmp word [eax], 0
je 0x427af2
mov dword [ebp - 0x34], eax
cmp edx, esi
je 0x427ad7
mov dword [esi], eax
add esi, 4
mov dword [ebp - 0x44], esi
jmp 0x427af2
lea eax, [ebp - 0x34]
push eax
push esi
lea ecx, [ebp - 0x48]
call fcn.0042f580
mov eax, dword [ebp - 0x40]
mov edx, eax
mov esi, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x4c]
mov dword [ebp - 0x3c], eax
lea eax, [ecx + 1]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x38]
add eax, edi
mov dword [ebp - 0x30], eax
inc ecx
add edi, 2
mov dword [ebp - 0x4c], ecx
cmp ecx, ebx
jb 0x427aa5
mov ecx, dword [ebp - 0x48]
xor edi, edi
mov dword [ebp - 0x30], ecx
jmp 0x427b19
xor edx, edx
xor ecx, ecx
mov eax, dword [ebp - 0x34]
mov ebx, dword [ebp - 0x50]
cmp word [ebx + eax*2], 0
lea eax, [ebx + eax*2]
je 0x427b56
mov dword [ebp - 0x38], eax
cmp edx, esi
je 0x427b3a
mov dword [esi], eax
add esi, 4
mov dword [ebp - 0x44], esi
jmp 0x427b56
lea eax, [ebp - 0x38]
push eax
push esi
lea ecx, [ebp - 0x48]
call fcn.0042f580
mov edx, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x48]
mov esi, dword [ebp - 0x44]
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x30], ecx
sub esi, ecx
sar esi, 2
test esi, esi
je 0x427ccd
xor eax, eax
mov dword [ebp - 0x34], eax
test esi, esi
je 0x427c4a
mov edx, dword [ecx + eax*4]
mov ecx, edx
lea ebx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x427b80
sub ecx, ebx
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.0041a690
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x427bb5
xor ebx, ebx
jmp 0x427bc9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp ebx, 0xb7
jne 0x427ccd
lea eax, [ebp - 0x28]
push eax
cmp dword [ebp - 0x54], edi
je 0x427be1
mov ecx, edi
call fcn.0041a7e0
add edi, 0x18
mov dword [ebp - 0x58], edi
jmp 0x427bed
push edi
lea ecx, [ebp - 0x5c]
call fcn.0042f850
mov edi, dword [ebp - 0x58]
lea eax, [ebp - 0x2a]
cmp ebx, 0xb7
push eax
lea ecx, [ebp - 0x70]
sete byte [ebp - 0x2a]
call fcn.00429860
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
cmp ecx, edx
jae 0x427c26
lea eax, [ecx + 1]
cmp edx, 8
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
mov dword [eax + ecx*2], 0x5c
jmp 0x427c38
push 0x5c
mov byte [ebp - 0x38], 0
push dword [ebp - 0x38]
push ecx
lea ecx, [ebp - 0x28]
call fcn.0041c880
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x30]
inc eax
mov dword [ebp - 0x34], eax
cmp eax, esi
jb 0x427b70
push 0xa
push str.test.write
lea ecx, [ebp - 0x28]
call fcn.0041a690
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0
cmovae eax, dword [ebp - 0x28]
push 0x4000000
push 2
push 0
push 7
push 0x120116
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x427ccd
cmp dword [ebp - 0x60], 0
je 0x427cc2
mov ebx, dword [ebp - 0x5c]
mov ecx, edi
sub ecx, ebx
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
lea eax, [eax + eax*2]
lea eax, [eax - 3]
cmp dword [ebx + eax*8 + 0x14], 8
lea eax, [ebx + eax*8]
jb 0x427cb4
mov eax, dword [eax]
push 0
push 0
push dword [ebp - 0x60]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
push esi
mov byte [ebp - 0x29], 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x5c]
mov eax, 0x2aaaaaab
sub edi, ecx
imul edi
sar edx, 2
mov edi, edx
shr edi, 0x1f
add edi, edx
je 0x427d24
lea esi, [edi - 1]
lea esi, [esi + esi*2]
lea ebx, [edi - 1]
lea esi, [ecx + esi*8]
mov eax, dword [ebp - 0x70]
mov ecx, ebx
and ecx, 0x1f
mov edx, 1
shl edx, cl
mov ecx, ebx
shr ecx, 5
test dword [eax + ecx*4], edx
jne 0x427d24
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x427d14
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
dec ebx
sub esi, 0x18
sub edi, 1
jne 0x427cf1
push dword [ebp - 0x50]
call fcn.004ef010
add esp, 4
lea ecx, [ebp - 0x28]
call fcn.0041b400
lea ecx, [ebp - 0x70]
call fcn.0041af70
lea ecx, [ebp - 0x5c]
call fcn.0042c330
mov edx, dword [ebp - 0x30]
test edx, edx
je 0x427d7a
mov ecx, dword [ebp - 0x3c]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x427d70
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x427d9d
push ecx
push edx
call fcn.004ca782
add esp, 8
mov al, byte [ebp - 0x29]
jmp 0x427d81
xor al, al
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.004ca771
mov esp, ebp
pop ebp
ret
call fcn.004eefc0
int3