Function at 0x404200
Capabilities:
Create directory
Create process on windows
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x40ab0d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1f0
push ebx
push ebp
push esi
push edi
mov ebp, ecx
call sub.MFC42.DLL_CCmdTarget::BeginWaitCursor
mov eax, dword [str.222.122.142.214]
mov ecx, dword [0x40d0ec]
mov edx, dword [0x40d0f0]
mov dword [esp + 0xa0], eax
mov eax, dword [0x40d0f4]
mov dword [esp + 0xa4], ecx
mov dword [esp + 0xac], eax
mov ecx, 8
xor eax, eax
lea edi, [esp + 0xb0]
mov dword [esp + 0xa8], edx
mov esi, str.http:__222.122.142.214_cleardisk_cds_version.txt
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0xc
lea edi, [esp + 0x19c]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov ecx, 0xc
xor eax, eax
lea edi, [esp + 0x1ce]
mov esi, str.C:Program_Filescleardisk_version.txt
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 9
lea edi, [esp + 0xd4]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0xfb]
mov byte [esp + 0x138], 0
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
mov ecx, 0x18
xor eax, eax
lea edi, [esp + 0x139]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x1c]
stosb byte es:[edi], al
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp + 0x18c]
push 0
push 0
push 0x1009
push ecx
mov dword [esp + 0x218], 0
call dword [sym.imp.USER32.dll_SendMessageA]
push str.C:Program_Filescleardisk
call dword [sym.imp.MSVCRT.dll__mkdir]
add esp, 4
lea edx, [esp + 0xd4]
lea eax, [esp + 0x19c]
lea ecx, [esp + 0xa0]
push edx
push eax
push ecx
mov ecx, ebp
call fcn.00403b30
test eax, eax
je 0x404cb1
lea edx, [esp + 0xd4]
push 0x40d454
push edx
call dword [sym.imp.MSVCRT.dll_fopen]
mov edi, eax
add esp, 8
test edi, edi
je 0x404cb1
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
mov ebx, dword [sym.imp.MSVCRT.dll_fgets]
mov byte [esp + 0x208], 1
push edi
lea eax, [esp + 0x13c]
push 0x64
push eax
call ebx
add esp, 0xc
lea ecx, [esp + 0x138]
lea edx, [esp + 0x1c]
push ecx
push 0x40d1ac
push edx
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0x28]
add esp, 0xc
lea ecx, [esp + 0x14]
mov eax, dword [eax - 8]
dec eax
push eax
push ecx
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x20c], 2
call fcn.00409eda
lea ecx, [esp + 0x14]
mov byte [esp + 0x208], 1
call fcn.00409d12
mov eax, dword [esp + 0x10]
mov esi, dword [sym.imp.MSVCRT.dll__mbscmp]
lea edx, [esp + 0x138]
push edx
push eax
call esi
add esp, 8
test eax, eax
je 0x40441b
lea ecx, [esp + 0x138]
push ecx
lea ecx, [esp + 0x14]
call fcn.00409e80
mov edx, dword [esp + 0x1c]
push 0
push 0
push 0
push 0
push edx
push 0
push 1
lea ecx, [ebp + 0x16c]
call sub.MFC42.DLL_CListCtrl::InsertItem
jmp 0x404369
push 0
mov ecx, ebp
call sub.MFC42.DLL_CWnd::UpdateData
call dword [sym.imp.MSVCRT.dll_clock]
lea ecx, [esp + 0x38]
mov dword [esp + 0x70], eax
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x50]
mov byte [esp + 0x208], 3
call sub.MFC42.DLL_CString::CString
lea eax, [esp + 0xd4]
lea edi, [ebp + 0xd4]
push eax
push 0x40d1ac
push edi
mov byte [esp + 0x214], 4
call sub.MFC42.DLL_CString::Format
mov ecx, dword [ebp + 0x18c]
add esp, 0xc
push 0
push 0
push 0x1004
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edx, dword [ebp + 0x14c]
push 0x64
push 0
mov ebx, eax
push 0x406
push edx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x28], 0
call dword [sym.imp.USER32.dll_SendMessageA]
lea eax, [ebx*4 + 4]
push eax
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x30], eax
test eax, eax
mov byte [esp + 0x208], 5
je 0x4044ec
push fcn.00409d12
mov dword [eax], ebx
push sub.MFC42.DLL_CString::CString
add eax, 4
push ebx
push 4
push eax
mov dword [esp + 0x28], eax
call fcn.0040a020
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x20], ecx
jmp 0x4044f4
mov dword [esp + 0x20], 0
push str.C:Program_Filescleardisk
mov ecx, edi
mov byte [esp + 0x20c], 4
call fcn.00409e80
test ebx, ebx
mov dword [esp + 0x24], 0
jle 0x404969
mov edx, dword [esp + 0x20]
mov dword [esp + 0x14], edx
mov eax, dword [esp + 0x24]
xor edi, edi
push edi
lea ecx, [esp + 0x78]
push eax
push ecx
lea ecx, [ebp + 0x16c]
call sub.MFC42.DLL_CListCtrl::GetItemText
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x20c], 6
call fcn.00409eda
lea ecx, [esp + 0x74]
mov byte [esp + 0x208], 4
call fcn.00409d12
lea edx, [esp + 0x6c]
push 4
push edx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Right
mov eax, dword [eax]
push str..zgz
push eax
call esi
add esp, 8
lea ecx, [esp + 0x6c]
test eax, eax
setne bl
call fcn.00409d12
test bl, bl
je 0x404667
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x8c]
mov byte [esp + 0x208], 7
call sub.MFC42.DLL_CStringArray::CStringArray
lea eax, [esp + 0x8c]
mov byte [esp + 0x208], 8
push eax
push ecx
lea eax, [ebp + 0xd4]
mov ecx, esp
mov dword [esp + 0x5c], esp
push eax
call sub.MFC42.DLL_CString::CString_2
mov ecx, ebp
call fcn.00402f50
mov eax, dword [esp + 0x94]
test eax, eax
jle 0x40463d
lea ecx, [esp + 0x3c]
push edi
push ecx
lea ecx, [esp + 0x94]
call fcn.004027c0
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x20c], 9
call fcn.00409eda
lea ecx, [esp + 0x3c]
mov byte [esp + 0x208], 8
call fcn.00409d12
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CString::MakeLower
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x2c]
push edx
push eax
call esi
add esp, 8
test eax, eax
je 0x40463d
mov eax, dword [esp + 0x94]
inc edi
cmp edi, eax
jl 0x4045e0
lea ecx, [esp + 0x8c]
mov byte [esp + 0x208], 7
call fcn.00409efe
lea ecx, [esp + 0x2c]
mov byte [esp + 0x208], 4
call fcn.00409d12
jmp 0x404934
push 0x40d154
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Find
lea ecx, [esp + 0x60]
push eax
push ecx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Left
lea ecx, [esp + 0x4c]
mov byte [esp + 0x208], 0xa
call sub.MFC42.DLL_CString::CString
push 0x40d154
lea ecx, [esp + 0x14]
mov byte [esp + 0x20c], 0xb
call sub.MFC42.DLL_CString::Find
cmp eax, 0xffffffff
je 0x404905
lea ecx, [esp + 0x78]
call sub.MFC42.DLL_CStringArray::CStringArray
mov edx, dword [esp + 0x10]
push 0x40d154
lea ecx, [esp + 0x14]
mov byte [esp + 0x20c], 0xc
mov esi, dword [edx - 8]
call sub.MFC42.DLL_CString::Find
sub esi, eax
lea ecx, [esp + 0x10]
sub esi, 5
push esi
push 0x40d154
call sub.MFC42.DLL_CString::Find
inc eax
lea ecx, [esp + 0x14]
push eax
lea eax, [esp + 0x6c]
push eax
call sub.MFC42.DLL_CString::Mid
lea ecx, [esp + 0x78]
lea eax, [ebp + 0xd4]
push ecx
push ecx
mov ecx, esp
mov dword [esp + 0x5c], esp
push eax
mov byte [esp + 0x214], 0xd
call sub.MFC42.DLL_CString::CString_2
mov ecx, ebp
call fcn.00402f50
lea ecx, [esp + 0x34]
call sub.MFC42.DLL_CString::CString
lea edx, [esp + 0x64]
lea ecx, [esp + 0x34]
push edx
mov byte [esp + 0x20c], 0xe
call fcn.00409eda
lea ecx, [esp + 0x34]
call sub.MFC42.DLL_CString::MakeLower
lea ecx, [esp + 0x28]
xor edi, edi
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x80]
xor esi, esi
test eax, eax
mov byte [esp + 0x208], 0xf
jle 0x4047ce
lea eax, [esp + 0x40]
push esi
push eax
lea ecx, [esp + 0x80]
call fcn.004027c0
push eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0x20c], 0x10
call fcn.00409eda
lea ecx, [esp + 0x40]
mov byte [esp + 0x208], 0xf
call fcn.00409d12
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CString::MakeLower
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x28]
push ecx
push edx
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
je 0x404822
mov eax, dword [esp + 0x80]
inc esi
cmp esi, eax
jl 0x40476d
mov ebx, 1
lea ecx, [esp + 0x28]
mov byte [esp + 0x208], 0xe
call fcn.00409d12
lea ecx, [esp + 0x34]
mov byte [esp + 0x208], 0xd
call fcn.00409d12
lea ecx, [esp + 0x64]
mov byte [esp + 0x208], 0xc
call fcn.00409d12
lea ecx, [esp + 0x78]
mov byte [esp + 0x208], 0xb
call fcn.00409efe
mov esi, dword [sym.imp.MSVCRT.dll__mbscmp]
jmp 0x40490a
lea eax, [esp + 0x28]
lea ecx, [esp + 0x44]
push eax
mov edi, 1
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x28]
lea edx, [esp + 0x48]
push ecx
push str.C:Program_Filescleardisk_
push edx
mov byte [esp + 0x214], 0x11
call sub.MFC42.DLL_operator_2
push eax
lea ecx, [esp + 0x48]
mov byte [esp + 0x20c], 0x12
call fcn.00409eda
lea ecx, [esp + 0x48]
mov byte [esp + 0x208], 0x11
call fcn.00409d12
push ecx
lea eax, [esp + 0x48]
mov ecx, esp
mov dword [esp + 0x58], esp
push eax
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x34]
push ecx
mov ecx, ebp
call fcn.00402cc0
push eax
lea ecx, [esp + 0x50]
mov byte [esp + 0x20c], 0x13
call fcn.00409eda
lea ecx, [esp + 0x30]
mov byte [esp + 0x208], 0x11
call fcn.00409d12
push ecx
lea edx, [esp + 0x50]
mov ecx, esp
mov dword [esp + 0x58], esp
push edx
call sub.MFC42.DLL_CString::CString_2
push ecx
lea eax, [esp + 0x68]
mov ecx, esp
mov dword [esp + 0x70], esp
push eax
mov byte [esp + 0x214], 0x14
call sub.MFC42.DLL_CString::CString_2
mov ecx, ebp
mov byte [esp + 0x210], 0x11
call fcn.00403040
lea ecx, [esp + 0x44]
mov ebx, eax
mov byte [esp + 0x208], 0xf
call fcn.00409d12
jmp 0x4047d3
mov ebx, 1
lea ecx, [esp + 0x4c]
mov byte [esp + 0x208], 0xa
call fcn.00409d12
lea ecx, [esp + 0x60]
mov byte [esp + 0x208], 4
call fcn.00409d12
test ebx, ebx
jne 0x404934
test edi, edi
jne 0x404954
mov edi, dword [esp + 0x14]
lea ecx, [esp + 0x10]
push ecx
mov ecx, edi
call fcn.00409eda
mov ecx, dword [esp + 0x18]
inc ecx
add edi, 4
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], edi
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x58]
inc eax
cmp eax, ecx
mov dword [esp + 0x24], eax
jl 0x404520
mov eax, dword [esp + 0x18]
test eax, eax
jle 0x404c38
mov ebx, dword [esp + 0x20]
mov edx, eax
mov dword [esp + 0x14], edx
push ebx
lea ecx, [esp + 0x14]
call fcn.00409eda
push 0x40d154
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Find
push eax
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Left
lea ecx, [esp + 0x40]
mov byte [esp + 0x208], 0x15
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x78]
mov byte [esp + 0x208], 0x16
call sub.MFC42.DLL_CStringArray::CStringArray
mov ecx, dword [esp + 0x10]
push 0x40d154
mov byte [esp + 0x20c], 0x17
mov esi, dword [ecx - 8]
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Find
sub esi, eax
lea ecx, [esp + 0x10]
sub esi, 5
push esi
push 0x40d154
call sub.MFC42.DLL_CString::Find
inc eax
lea edx, [esp + 0x4c]
push eax
push edx
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::Mid
push str.http:__222.122.142.214_cleardisk_cds_
lea ecx, [esp + 0x3c]
mov byte [esp + 0x20c], 0x18
call fcn.00409e80
lea eax, [esp + 0x10]
lea ecx, [esp + 0x38]
push eax
lea edx, [esp + 0x5c]
push ecx
push edx
call sub.MFC42.DLL_operator_1
push eax
lea ecx, [esp + 0x54]
mov byte [esp + 0x20c], 0x19
call fcn.00409eda
lea ecx, [esp + 0x58]
mov byte [esp + 0x208], 0x18
call fcn.00409d12
push 0x40ec28
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CString::CString_1
push 0x40ec28
lea ecx, [esp + 0x1c]
mov byte [esp + 0x20c], 0x1a
call sub.MFC42.DLL_CString::CString_1
push str.C:Program_Filescleardisk_
lea ecx, [esp + 0x28]
mov byte [esp + 0x20c], 0x1b
call fcn.00409e80
lea eax, [esp + 0x10]
lea ecx, [esp + 0x24]
push eax
lea edx, [esp + 0x34]
push ecx
push edx
call sub.MFC42.DLL_operator_1
mov byte [esp + 0x208], 0x1c
push eax
lea ecx, [esp + 0x1c]
call fcn.00409eda
lea ecx, [esp + 0x30]
mov byte [esp + 0x208], 0x1b
call fcn.00409d12
push 0x64
lea ecx, [esp + 0x54]
call sub.MFC42.DLL_CString::GetBuffer
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x19c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x64
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::GetBuffer
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xd4]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x19c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [esp + 0xa0]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0xd4]
push ecx
push edx
push eax
mov ecx, ebp
call fcn.00403b30
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::CString
mov byte [esp + 0x208], 0x1d
push 0x40d4b4
push 0
call dword [sym.imp.USER32.dll_FindWindowA]
test eax, eax
je 0x404b84
push 0
push 0
push 0x10
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x404b59
push str.C:Program_Filescleardisk_
lea ecx, [esp + 0x24]
call fcn.00409e80
lea ecx, [esp + 0x20]
lea edx, [esp + 0x18]
push ecx
push ecx
mov ecx, esp
mov dword [esp + 0x70], esp
push edx
call sub.MFC42.DLL_CString::CString_2
mov ecx, ebp
call fcn.004027f0
lea ecx, [esp + 0x20]
mov byte [esp + 0x208], 0x1b
call fcn.00409d12
lea ecx, [esp + 0x18]
mov byte [esp + 0x208], 0x1a
call fcn.00409d12
lea ecx, [esp + 0x24]
mov byte [esp + 0x208], 0x18
call fcn.00409d12
lea ecx, [esp + 0x48]
mov byte [esp + 0x208], 0x17
call fcn.00409d12
lea ecx, [esp + 0x78]
mov byte [esp + 0x208], 0x16
call fcn.00409efe
lea ecx, [esp + 0x40]
mov byte [esp + 0x208], 0x15
call fcn.00409d12
lea ecx, [esp + 0x3c]
mov byte [esp + 0x208], 4
call fcn.00409d12
mov eax, dword [esp + 0x14]
add ebx, 4
dec eax
mov dword [esp + 0x14], eax
jne 0x40497f
call dword [sym.imp.MSVCRT.dll_clock]
mov ecx, dword [esp + 0x70]
push 1
sub eax, ecx
mov ecx, ebp
push eax
push 0x3ea
call sub.MFC42.DLL_CWnd::SetDlgItemInt
mov ecx, ebp
call sub.MFC42.DLL_CCmdTarget::EndWaitCursor
push str.C:Program_Filescleardiskcds.exe
lea ecx, [esp + 0x60]
call sub.MFC42.DLL_CString::CString_1
mov eax, dword [esp + 0x5c]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
lea ecx, [esp + 0x5c]
call fcn.00409d12
lea ecx, [esp + 0x50]
mov byte [esp + 0x208], 3
call fcn.00409d12
lea ecx, [esp + 0x38]
mov byte [esp + 0x208], 1
call fcn.00409d12
lea ecx, [esp + 0x10]
mov byte [esp + 0x208], 0
call fcn.00409d12
lea ecx, [esp + 0x1c]
mov dword [esp + 0x208], 0xffffffff
call fcn.00409d12
mov ecx, dword [esp + 0x200]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x1fc
ret