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

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4716d5
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x78
mov eax, dword [0x4d100c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, edx
mov dword [ebp - 0x7c], eax
mov edi, ecx
mov byte [ebp - 0x55], 0
test eax, eax
je 0x41d7ba
mov dword [eax], 0
mov dword [eax + 4], 0
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41d7c0
sub ecx, edx
sar ecx, 1
cmp ecx, 3
jb 0x41dcbe
push 2
push 0x4951d8
push edi
call fcn.004609c7
add esp, 0xc
test eax, eax
je 0x41dcbe
cmp word [edi + 2], 0x3a
jne 0x41dcbe
cmp word [edi + 4], 0x5c
jne 0x41dcbe
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
xor edx, edx
movq qword [ebp - 0x20], xmm0
xor eax, eax
mov dword [ebp - 0x5c], edx
xor esi, esi
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], eax
movq qword [ebp - 0x2c], xmm0
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x24], eax
movups xmmword [ebp - 0x3c], xmm0
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x54]
push eax
mov dword [ebp - 0x54], eax
push 0x47c32c
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], 7
mov word [ebp - 0x54], ax
call fcn.00411b40
push edi
mov byte [ebp - 4], 3
call fcn.0045476b
mov ecx, eax
mov dword [ebp - 0x68], eax
add esp, 4
xor edi, edi
mov dword [ebp - 0x64], edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41d891
sub ecx, edx
mov dword [ebp - 0x60], 3
sar ecx, 1
mov dword [ebp - 0x78], ecx
cmp ecx, 3
jbe 0x41d943
mov edx, dword [ebp - 0x60]
mov eax, 2
mov dword [ebp - 0x5c], edi
mov edi, dword [ebp - 0x68]
add edi, 6
sub eax, dword [ebp - 0x68]
mov dword [ebp - 0x80], eax
nop word [eax + eax]
movzx eax, word [edi]
cmp eax, 0x5c
je 0x41d8dd
cmp eax, 0x2f
jne 0x41d92d
mov ecx, dword [ebp - 0x78]
xor eax, eax
mov word [edi], ax
mov eax, dword [ebp - 0x5c]
add eax, dword [ebp - 0x68]
cmp word [eax], 0
je 0x41d91f
mov dword [ebp - 0x64], eax
cmp esi, dword [ebp - 0x70]
je 0x41d903
mov dword [esi], eax
add esi, 4
mov dword [ebp - 0x1c], esi
jmp 0x41d91f
lea eax, [ebp - 0x64]
push eax
push esi
lea ecx, [ebp - 0x20]
call fcn.00420c10
mov eax, dword [ebp - 0x18]
mov esi, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x78]
mov edx, dword [ebp - 0x60]
mov dword [ebp - 0x70], eax
lea eax, [edx + 1]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x80]
add eax, edi
mov dword [ebp - 0x5c], eax
inc edx
add edi, 2
mov dword [ebp - 0x60], edx
cmp edx, ecx
jb 0x41d8d0
mov ecx, dword [ebp - 0x20]
mov edi, dword [ebp - 0x64]
mov dword [ebp - 0x5c], ecx
jmp 0x41d945
xor ecx, ecx
mov eax, dword [ebp - 0x68]
cmp word [eax + edi*2], 0
lea eax, [eax + edi*2]
je 0x41d980
mov dword [ebp - 0x80], eax
cmp esi, dword [ebp - 0x70]
je 0x41d964
mov dword [esi], eax
add esi, 4
mov dword [ebp - 0x1c], esi
jmp 0x41d980
lea eax, [ebp - 0x80]
push eax
push esi
lea ecx, [ebp - 0x20]
call fcn.00420c10
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x20]
mov esi, dword [ebp - 0x1c]
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x5c], ecx
sub esi, ecx
sar esi, 2
test esi, esi
je 0x41db23
xor eax, eax
mov dword [ebp - 0x64], eax
test esi, esi
je 0x41daa0
nop word [eax + eax]
mov edx, dword [ecx + eax*4]
mov ecx, edx
lea edi, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41d9b0
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x54]
call fcn.00412220
cmp dword [ebp - 0x40], 8
lea eax, [ebp - 0x54]
push 0
cmovae eax, dword [ebp - 0x54]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x41d9e5
xor edi, edi
jmp 0x41d9f9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, 0xb7
jne 0x41da95
mov eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x54]
push ecx
cmp eax, dword [ebp - 0x74]
je 0x41da12
mov ecx, eax
call fcn.00411780
add dword [ebp - 0x28], 0x18
jmp 0x41da21
push eax
lea ecx, [ebp - 0x2c]
call fcn.00420ac0
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x74], eax
mov edx, dword [ebp - 0x30]
cmp edi, 0xb7
sete byte [ebp - 0x56]
test edx, edx
jns 0x41da4d
mov eax, edx
neg eax
je 0x41da4d
mov ecx, dword [ebp - 0x3c]
mov eax, edx
not eax
shr eax, 5
lea eax, [eax*4 + 4]
sub ecx, eax
jmp 0x41da58
mov eax, dword [ebp - 0x3c]
mov ecx, edx
shr ecx, 5
lea ecx, [eax + ecx*4]
and edx, 0x1f
lea eax, [ebp - 0x56]
push edx
push ecx
push eax
push ecx
lea eax, [ebp - 0x84]
push eax
lea ecx, [ebp - 0x3c]
call fcn.00420680
push 0x5c
lea ecx, [ebp - 0x54]
call fcn.00411a20
mov eax, dword [ebp - 0x64]
mov ecx, dword [ebp - 0x5c]
inc eax
mov dword [ebp - 0x64], eax
cmp eax, esi
jb 0x41d9a0
mov esi, dword [ebp - 0x2c]
mov dword [ebp - 0x6c], esi
jmp 0x41daa2
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x6c], ecx
jmp 0x41db23
xor esi, esi
push 0xa
push str.test.write
lea ecx, [ebp - 0x54]
call fcn.00412220
cmp dword [ebp - 0x40], 8
lea eax, [ebp - 0x54]
push 0
cmovae eax, dword [ebp - 0x54]
push 0x4000000
push 2
push 0
push 7
push 0x120116
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x41db23
cmp dword [ebp - 0x7c], 0
je 0x41db18
mov ecx, dword [ebp - 0x28]
mov eax, 0x2aaaaaab
sub ecx, esi
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 [esi + eax*8 + 0x14], 8
lea eax, [esi + eax*8]
jb 0x41db0a
mov eax, dword [eax]
push 0
push 0
push dword [ebp - 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
push edi
mov byte [ebp - 0x55], 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x28]
mov eax, 0x2aaaaaab
mov ecx, esi
sub ecx, dword [ebp - 0x6c]
imul ecx
sar edx, 2
mov edi, edx
shr edi, 0x1f
add edi, edx
je 0x41db8d
mov edx, dword [ebp - 0x6c]
lea esi, [edi - 1]
lea ecx, [edi - 1]
lea esi, [esi + esi*2]
mov dword [ebp - 0x60], ecx
lea esi, [edx + esi*8]
mov eax, dword [ebp - 0x3c]
shr ecx, 5
lea edx, [eax + ecx*4]
mov ecx, dword [ebp - 0x60]
and ecx, 0x1f
mov eax, 1
shl eax, cl
test dword [edx], eax
jne 0x41db8a
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x41db74
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ecx, dword [ebp - 0x60]
sub esi, 0x18
dec ecx
mov dword [ebp - 0x60], ecx
sub edi, 1
jne 0x41db50
mov esi, dword [ebp - 0x28]
push dword [ebp - 0x68]
call fcn.004605b8
mov edx, dword [ebp - 0x40]
add esp, 4
cmp edx, 8
jb 0x41dbd2
mov ecx, dword [ebp - 0x54]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41dbc8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41dcde
push edx
push ecx
call fcn.00451449
add esp, 8
mov edx, dword [ebp - 0x3c]
xor eax, eax
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 7
mov word [ebp - 0x54], ax
test edx, edx
je 0x41dc32
mov ecx, dword [ebp - 0x34]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x41dc13
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41dcde
push ecx
push edx
call fcn.00451449
add esp, 8
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov edi, dword [ebp - 0x6c]
test edi, edi
je 0x41dc86
push ecx
mov edx, esi
mov ecx, edi
call fcn.004133e0
mov ecx, dword [ebp - 0x74]
mov eax, 0x2aaaaaab
sub ecx, edi
add esp, 4
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*2]
mov eax, edi
shl ecx, 3
cmp ecx, 0x1000
jb 0x41dc7c
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41dcde
push ecx
push edi
call fcn.00451449
add esp, 8
mov edx, dword [ebp - 0x5c]
test edx, edx
je 0x41dcb9
mov ecx, dword [ebp - 0x70]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x41dcaf
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41dcde
push ecx
push edx
call fcn.00451449
add esp, 8
mov al, byte [ebp - 0x55]
jmp 0x41dcc0
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00450db2
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.00460976
int3