Function at 0x408153
Capabilities:
Create directory
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1024c
call fcn.00439e70
mov eax, dword [0x448008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea esi, [ebp - 0x108]
mov dword [ebp - 0x10210], ecx
mov edi, 0x443320
mov ecx, esi
mov bh, dl
mov al, 0x43
sub edi, ecx
mov byte [esi], al
inc esi
mov al, byte [edi + esi]
test al, al
jne 0x408186
mov ecx, str.DiskSpeedTest.temp
mov byte [esi], al
mov dword [ebp - 0x10220], esi
mov eax, esi
mov dl, 0x44
sub ecx, esi
mov byte [eax], dl
inc eax
mov dl, byte [ecx + eax]
test dl, dl
jne 0x4081a3
mov byte [eax], dl
mov al, byte [esi]
mov byte [ebp - 0x1020a], al
test bh, bh
je 0x4081c5
mov bl, 1
mov byte [0x4615f9], bl
jmp 0x4081d3
mov bl, byte [0x4615f9]
test bl, bl
je 0x40862c
mov edi, 0x484a90
test bh, bh
jne 0x4081f3
mov eax, dword [0x44ac90]
sub eax, dword [0x484a8c]
cdq
xor eax, edx
sub eax, edx
cmp eax, 0x12c
jle 0x40820b
push 6
xor eax, eax
pop ecx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [0x44ac90]
mov edi, 0x484a90
mov dword [0x484a8c], eax
cmp bl, 1
jne 0x408277
mov eax, 0x3e8
test bh, bh
mov ecx, 0xc8
cmovne ecx, eax
call fcn.004209b9
mov edi, dword [0x44e490]
or edi, dword [0x44e494]
mov ebx, dword [ebp - 0x10210]
push 2
pop esi
mov eax, connect
mov ecx, esi
shr eax, cl
test edi, eax
je 0x408255
cmp dword [esi*4 + 0x44e428], 0
je 0x408255
xor eax, eax
inc eax
jmp 0x408257
xor eax, eax
push eax
lea edx, [esi + 0x515]
mov ecx, ebx
call fcn.00402064
inc esi
cmp esi, 0x1a
jl 0x408239
mov byte [0x4615f9], 2
jmp 0x40862c
mov eax, dword [0x44e490]
or eax, dword [0x44e494]
mov dword [ebp - 0x1023c], eax
call fcn.00413842
movzx ebx, byte [0x4615f9]
mov dword [ebp - 0x10240], eax
add eax, 0xc8
mov dword [ebp - 0x10218], eax
mov dword [ebp - 0x10238], ebx
cmp ebx, 0x1a
jge 0x40860d
mov eax, 0x546
sub eax, edi
mov dword [ebp - 0x10244], eax
mov eax, 0x578
sub eax, edi
mov dword [ebp - 0x10248], eax
mov eax, 0x5b2
sub eax, edi
mov dword [ebp - 0x1024c], eax
mov eax, 0x515
sub eax, edi
mov edi, dword [ebp - 0x10210]
mov dword [ebp - 0x10234], eax
call fcn.00413842
cmp eax, dword [ebp - 0x10218]
ja 0x408602
mov edx, dword [ebx*4 + 0x44e428]
mov eax, connect
mov ecx, ebx
mov dword [ebp - 0x1022c], edx
shr eax, cl
mov dword [ebp - 0x10230], eax
test dword [ebp - 0x1023c], eax
je 0x40832b
test edx, edx
je 0x40832b
mov al, 1
jmp 0x40832d
xor al, al
mov ecx, dword [ebp - 0x10234]
mov byte [ebp - 0x10209], al
movzx eax, al
push eax
lea edx, [ecx + 0x484a90]
mov ecx, edi
add edx, ebx
call fcn.00402064
cmp byte [ebp - 0x10209], 0
je 0x4085f0
mov ecx, dword [ebp - 0x10230]
lea esi, [ebp - 0x208]
xor eax, eax
mov dword [ebp - 0x10214], eax
test dword [0x44e494], ecx
je 0x408398
mov ecx, str.Network
mov byte [ebx + 0x484a90], 4
mov eax, esi
mov dl, 0x4e
sub ecx, esi
mov byte [eax], dl
inc eax
mov dl, byte [ecx + eax]
test dl, dl
jne 0x408387
mov byte [eax], dl
jmp 0x408559
mov ecx, 0x442b18
lea edi, [ebp - 0x208]
sub ecx, esi
mov dl, 0x46
mov esi, dword [ebp - 0x10220]
mov byte [edi], dl
inc edi
mov dl, byte [ecx + edi]
test dl, dl
jne 0x4083ad
cmp dword [ebp - 0x1022c], 2
mov dword [ebp - 0x10228], edi
mov byte [edi], al
jbe 0x40853f
mov al, bl
add al, 0x41
mov byte [ebp - 0x108], al
mov al, byte [ebx + 0x484a90]
test al, al
je 0x4083e8
movzx eax, al
jmp 0x40853a
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
push eax
push 0x28000080
push 2
push eax
push eax
push 0x40000000
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
xor eax, eax
mov dword [ebp - 0x1021c], edi
mov dword [ebp - 0x10224], eax
cmp edi, 0xffffffff
jne 0x408478
push eax
mov byte [esi], al
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov cl, byte [ebp - 0x1020a]
mov byte [esi], cl
test eax, eax
je 0x40846f
xor eax, eax
mov dword [ebp - 0x10224], 1
push eax
push 0x28000080
push 2
push eax
push eax
push 0x40000000
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
mov dword [ebp - 0x1021c], eax
cmp edi, 0xffffffff
je 0x408507
call fcn.00413842
mov esi, dword [ebp - 0x1021c]
xor edi, edi
mov dword [ebp - 0x10218], eax
mov ebx, eax
push 0x10000
lea edx, [ebp - 0x10208]
mov ecx, esi
call fcn.00401dab
test al, al
je 0x4084b5
inc edi
call fcn.00413842
sub eax, ebx
cmp eax, 0x20
ja 0x4084b5
cmp edi, 0x10
jl 0x40848d
push dword [ebp - 0x1021c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp edi, 0xa
jl 0x4084d8
push 3
pop eax
jmp 0x4084e1
xor eax, eax
cmp edi, 4
setg al
inc eax
mov ebx, dword [ebp - 0x10238]
mov ecx, dword [ebp - 0x10240]
mov esi, dword [ebp - 0x10220]
mov dword [ebp - 0x10214], eax
mov byte [ebx + 0x484a90], al
mov dword [ebp - 0x10218], ecx
jmp 0x40850d
mov eax, dword [ebp - 0x10214]
cmp dword [ebp - 0x10224], 0
je 0x408534
lea eax, [ebp - 0x108]
mov byte [esi], 0
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov al, byte [ebp - 0x1020a]
mov byte [esi], al
mov eax, dword [ebp - 0x10214]
mov edi, dword [ebp - 0x10228]
cmp eax, 4
jge 0x408553
mov edx, dword [eax*4 + 0x442b04]
lea ecx, [edi + 2]
mov word [edi], 0x203a
call fcn.0040e8d5
mov edi, dword [ebp - 0x10210]
lea eax, [ebp - 0x208]
push eax
mov eax, dword [ebp - 0x10244]
lea eax, [eax + 0x484a90]
add eax, ebx
push eax
push edi
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
call fcn.00401a7e
mov edx, dword [ebp - 0x1022c]
mov ecx, eax
call fcn.00401ab8
push eax
mov eax, dword [ebp - 0x10248]
lea eax, [eax + 0x484a90]
add eax, ebx
push eax
push edi
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
mov eax, dword [ebp - 0x10230]
test dword [0x44e498], eax
je 0x4085b4
mov eax, 0x442b2c
jmp 0x4085c1
test dword [0x44e49c], eax
je 0x4085f0
mov eax, 0x442b24
push eax
mov eax, dword [ebp - 0x1024c]
lea eax, [eax + 0x484a90]
add eax, ebx
push eax
push edi
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
mov ecx, dword [ebp - 0x10234]
push 1
lea eax, [ecx + 0x484a90]
add eax, ebx
push eax
push edi
call dword [sym.imp.USER32.dll_CheckDlgButton]
inc ebx
mov dword [ebp - 0x10238], ebx
cmp ebx, 0x1a
jl 0x4082ee
jmp 0x408608
mov byte [0x4615f9], bl
cmp ebx, 0x1a
jl 0x40861b
mov byte [0x4615f9], 0
mov byte [0x4615fa], 1
mov ebx, dword [ebp - 0x10210]
push 0
push 0
push ebx
call dword [sym.imp.USER32.dll_InvalidateRect]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042a623
mov esp, ebp
pop ebp
ret