Function at 0x405ec0
Capabilities:
Copy file
Create directory
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40cb60
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x7c
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x48], esi
xor edi, edi
push 1
mov dword [ebp - 4], edi
call sub.MFC42.DLL_CWnd::UpdateData
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 3
call sub.MFC42.DLL_CFile::CFile
push 0x41012c
lea ecx, [ebp + 0x14]
mov byte [ebp - 4], 4
call sub.MFC42.DLL_CString::operator
lea ecx, [ebp - 0x1c]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 5
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x30], edi
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x30]
mov edi, dword [sym.imp.USER32.dll_PeekMessageA]
mov ebx, dword [sym.imp.USER32.dll_TranslateMessage]
and ecx, 0xffff
cmp eax, ecx
jge 0x406949
cmp eax, 3
jne 0x405f7a
mov eax, dword [esi + 0x4e8]
test eax, eax
je 0x405f7a
mov dword [esi + 0x4e8], 0
push 1
push 0
push 0
lea edx, [ebp - 0x88]
push 0
push edx
call edi
test eax, eax
je 0x405fba
lea eax, [ebp - 0x88]
push eax
call ebx
lea ecx, [ebp - 0x88]
push ecx
call dword [sym.imp.USER32.dll_DispatchMessageA]
push 1
push 0
push 0
lea edx, [ebp - 0x88]
push 0
push edx
call edi
test eax, eax
jne 0x405f8f
cmp dword [esi + 0x2d4], 1
jne 0x405fe4
push 1
push 2
mov ecx, esi
mov dword [esi + 0x2d4], 3
call sub.MFC42.DLL_CWnd::GetDlgItem
mov ecx, eax
call sub.MFC42.DLL_CWnd::EnableWindow
jmp 0x406b91
push 0x16
call sub.MFC42.DLL_operatornew
mov edi, eax
xor eax, eax
mov ecx, edi
mov ebx, dword [ebp + 8]
add esp, 4
mov dword [ebp - 0x28], edi
mov dword [ecx], eax
push 0x16
push edi
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x10], eax
mov word [ecx + 0x14], ax
mov edx, dword [ebx]
mov ecx, ebx
call dword [edx + 0x3c]
lea eax, [ebp + 0x14]
lea ecx, [ebp - 0x14]
push eax
call fcn.0040bcde
mov ecx, dword [edi]
inc ecx
push ecx
call sub.MFC42.DLL_operatornew
mov ecx, dword [edi]
mov edx, dword [ebx]
add esp, 4
mov dword [ebp - 0x34], eax
push ecx
push eax
mov ecx, ebx
call dword [edx + 0x3c]
mov edx, dword [edi]
mov ebx, dword [ebp - 0x34]
push ebx
lea ecx, [ebp - 0x24]
mov byte [edx + ebx], 0
call sub.MFC42.DLL_CString::CString_1
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 6
call sub.MFC42.DLL_CString::MakeLower
mov edi, dword [ebp - 0x24]
mov eax, str.sxiadan.ini
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [edi]
jne 0x406086
test cl, cl
je 0x406082
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [edi + 1]
jne 0x406086
add eax, 2
add edi, 2
test cl, cl
jne 0x406062
xor eax, eax
jmp 0x40608b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40614c
mov edi, dword [ebp - 0x24]
mov eax, str.fhsxiadan.ini
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [edi]
jne 0x4060bf
test cl, cl
je 0x4060bb
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [edi + 1]
jne 0x4060bf
add eax, 2
add edi, 2
test cl, cl
jne 0x40609b
xor eax, eax
jmp 0x4060c4
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40614c
mov edi, dword [ebp - 0x24]
mov eax, str.tdxuninstall.exe
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [edi]
jne 0x4060f8
test cl, cl
je 0x4060f4
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [edi + 1]
jne 0x4060f8
add eax, 2
add edi, 2
test cl, cl
jne 0x4060d4
xor eax, eax
jmp 0x4060fd
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40614c
mov eax, dword [ebp - 0x24]
mov ecx, dword [0x411d54]
mov edi, dword [sym.imp.MSVCRT.dll_strstr]
push eax
push ecx
call edi
add esp, 8
test eax, eax
jne 0x40614c
mov ecx, dword [ebp - 0x24]
mov edx, dword [0x411d50]
push ecx
push edx
call edi
add esp, 8
test eax, eax
push ebx
je 0x406142
lea eax, [esi + 0x3e4]
lea ecx, [ebp - 0x14]
push eax
push 0x41011c
push ecx
jmp 0x40615d
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::operator
jmp 0x406165
lea edx, [esi + 0x2e0]
push ebx
push edx
lea eax, [ebp - 0x14]
push 0x41011c
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0x10
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x3c], 0
mov edi, edx
mov eax, str.mfc42.dll
mov bl, byte [eax]
mov cl, bl
cmp bl, byte [edi]
jne 0x40619a
test cl, cl
je 0x406196
mov bl, byte [eax + 1]
mov cl, bl
cmp bl, byte [edi + 1]
jne 0x40619a
add eax, 2
add edi, 2
test cl, cl
jne 0x406176
xor eax, eax
jmp 0x40619f
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4061db
mov edi, edx
mov eax, str.msvcrt.dll
mov dl, byte [eax]
mov bl, byte [edi]
mov cl, dl
cmp dl, bl
jne 0x4061d2
test cl, cl
je 0x4061ce
mov dl, byte [eax + 1]
mov bl, byte [edi + 1]
mov cl, dl
cmp dl, bl
jne 0x4061d2
add eax, 2
add edi, 2
test cl, cl
jne 0x4061aa
xor eax, eax
jmp 0x4061d7
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x406202
mov eax, 1
lea ecx, [esi + 0x3e4]
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x34]
lea edx, [ebp - 0x2c]
push eax
push ecx
push 0x41011c
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0x10
lea eax, [ebp - 0x24]
lea ecx, [ebp - 0x18]
push eax
call sub.MFC42.DLL_CString::CString_2
mov edi, dword [ebp - 0x34]
lea ecx, [ebp - 0x38]
push edi
mov byte [ebp - 4], 7
call sub.MFC42.DLL_CString::CString_1
mov eax, dword [esi + 0x4e8]
mov byte [ebp - 4], 8
test eax, eax
jne 0x40624d
mov ecx, dword [ebp - 0x14]
lea edx, [esi + 0xc4]
push ecx
push 0x410570
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
mov ecx, esi
push 0
call sub.MFC42.DLL_CWnd::UpdateData
mov eax, dword [ebp - 0x14]
push 0
push 0x9001
push eax
lea ecx, [ebp - 0x6c]
call sub.MFC42.DLL_CFile::Open
test eax, eax
mov dword [ebp - 0x58], eax
jne 0x4063a5
mov eax, dword [ebp - 0x3c]
test eax, eax
jne 0x4063a5
mov eax, dword [esi + 0x4e8]
test eax, eax
je 0x4062ae
mov eax, dword [ebp - 0x30]
cmp eax, 1
je 0x40628d
cmp eax, 2
jne 0x4062ae
mov edi, dword [ebp + 8]
mov ecx, edi
mov edx, dword [edi]
call dword [edx + 0x14]
mov ecx, dword [ebp - 0x28]
push 0
mov edx, dword [ecx + 0xa]
mov ecx, edi
add eax, edx
mov edx, dword [edi]
push eax
call dword [edx + 0x30]
jmp 0x4068ca
test edi, edi
je 0x4062bb
push edi
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x4062cb
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x14]
lea ecx, [ebp + 8]
push eax
push 0x4106e4
push ecx
mov byte [ebp - 4], 0xd
call sub.MFC42.DLL_CString::Format
add esp, 0xc
mov ecx, esi
mov dword [esi + 0x2d4], 3
push 1
push 2
call sub.MFC42.DLL_CWnd::GetDlgItem
mov ecx, eax
call sub.MFC42.DLL_CWnd::EnableWindow
mov edx, dword [ebp + 8]
push 0
push 0x20
push edx
call sub.MFC42.DLL_AfxMessageBox
lea ecx, [ebp + 8]
mov byte [ebp - 4], 8
call fcn.0040bb3a
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 7
call fcn.0040bb3a
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 6
call fcn.0040bb3a
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 5
call fcn.0040bb3a
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 4
call fcn.0040bb3a
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 3
call fcn.0040bd0e
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.0040bb3a
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 1
call fcn.0040bb3a
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.0040bb3a
lea ecx, [ebp + 0x14]
mov dword [ebp - 4], 0xffffffff
call fcn.0040bb3a
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + 6]
test eax, eax
jbe 0x4065f6
add eax, 2
push eax
call sub.MFC42.DLL_operatornew
mov ecx, dword [ebp - 0x28]
mov ebx, eax
mov dword [ebp - 0x4c], ebx
mov edx, dword [ecx + 0xa]
inc edx
push edx
call sub.MFC42.DLL_operatornew
mov edx, dword [ebp - 0x28]
mov ecx, dword [ebp + 8]
add esp, 8
mov edi, eax
mov edx, dword [edx + 0xa]
mov eax, dword [ecx]
push edx
push edi
mov dword [ebp - 0x50], edi
call dword [eax + 0x3c]
mov eax, dword [ebp - 0x28]
mov edx, dword [eax + 0xa]
mov ecx, dword [eax + 6]
push edx
lea eax, [ebp - 0x44]
push edi
add ecx, 2
push eax
push ebx
mov dword [ebp - 0x44], ecx
call fcn.00408d60
add esp, 0x10
mov dword [ebp - 0x54], eax
test eax, eax
je 0x4064d9
test ebx, ebx
je 0x40641c
push ebx
call sub.MFC42.DLL_operatordelete
add esp, 4
test edi, edi
je 0x406429
push edi
call sub.MFC42.DLL_operatordelete
add esp, 4
lea ecx, [ebp + 0xc]
call sub.MFC42.DLL_CString::CString
mov edi, dword [ebp - 0x28]
mov eax, dword [ebp - 0x54]
mov ebx, dword [ebp - 0x34]
mov byte [ebp - 4], 9
mov ecx, dword [edi + 6]
mov edx, dword [edi + 0xa]
push ecx
push edx
push eax
push ebx
lea ecx, [ebp + 0xc]
push 0x4106b8
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 0x18
test ebx, ebx
je 0x406466
push ebx
call sub.MFC42.DLL_operatordelete
add esp, 4
test edi, edi
je 0x406473
push edi
call sub.MFC42.DLL_operatordelete
add esp, 4
push 1
push 2
mov ecx, esi
mov dword [esi + 0x2d4], 3
call sub.MFC42.DLL_CWnd::GetDlgItem
mov ecx, eax
call sub.MFC42.DLL_CWnd::EnableWindow
mov edx, dword [ebp + 0xc]
push 0
push 0x10
push edx
call sub.MFC42.DLL_AfxMessageBox
lea ecx, [ebp - 0x6c]
call sub.MFC42.DLL_CFile::Close
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 8
call fcn.0040bb3a
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 7
call fcn.0040bb3a
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 6
call fcn.0040bb3a
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 5
call fcn.0040bb3a
jmp 0x406b91
mov eax, dword [ebp - 0x58]
mov byte [ebp - 4], 0xa
test eax, eax
je 0x4065c3
mov eax, dword [ebp - 0x44]
lea ecx, [ebp - 0x6c]
push eax
push ebx
call sub.MFC42.DLL_CFile::Write
jmp 0x4065d5
mov dword [ebp - 0x40], 0
jmp 0x4065d5
test ebx, ebx
mov dword [ebp - 4], 8
je 0x4065e9
push ebx
call sub.MFC42.DLL_operatordelete
add esp, 4
test edi, edi
je 0x4065f6
push edi
call sub.MFC42.DLL_operatordelete
add esp, 4
lea ecx, [ebp - 0x6c]
call sub.MFC42.DLL_CFile::Close
mov eax, dword [ebp - 0x3c]
test eax, eax
je 0x40661c
mov eax, dword [ebp - 0x40]
test eax, eax
je 0x40661c
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x14]
push 0
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov eax, dword [ebp - 0x30]
test eax, eax
jle 0x40662d
mov eax, dword [esi + 0x4e8]
test eax, eax
jne 0x40663b
mov eax, dword [esi + 0x4e8]
test eax, eax
jne 0x4068ca
mov edx, dword [ebp - 0x18]
mov eax, dword [0x411d4c]
push edx
push eax
call dword [sym.imp.MSVCRT.dll_strstr]
add esp, 8
test eax, eax
jne 0x40681e
push str..ocx
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::Find
cmp eax, 0xffffffff
jne 0x40681e
mov eax, dword [ebp - 0x18]
mov edi, str.rhstclient.dll
mov ecx, eax
mov bl, byte [ecx]
mov dl, bl
cmp bl, byte [edi]
jne 0x40669a
test dl, dl
je 0x406696
mov bl, byte [ecx + 1]
mov dl, bl
cmp bl, byte [edi + 1]
jne 0x40669a
add ecx, 2
add edi, 2
test dl, dl
jne 0x406676
xor ecx, ecx
jmp 0x40669f
sbb ecx, ecx
sbb ecx, 0xffffffff
test ecx, ecx
je 0x40681e
mov edi, str.rhstcaclient.dll
mov ecx, eax
mov bl, byte [ecx]
mov dl, bl
cmp bl, byte [edi]
jne 0x4066d2
test dl, dl
je 0x4066ce
mov bl, byte [ecx + 1]
mov dl, bl
cmp bl, byte [edi + 1]
jne 0x4066d2
add ecx, 2
add edi, 2
test dl, dl
jne 0x4066ae
xor ecx, ecx
jmp 0x4066d7
sbb ecx, ecx
sbb ecx, 0xffffffff
test ecx, ecx
je 0x40681e
mov edi, str.mfc42.dll
mov ecx, eax
mov bl, byte [ecx]
mov dl, bl
cmp bl, byte [edi]
jne 0x40670a
test dl, dl
je 0x406706
mov bl, byte [ecx + 1]
mov dl, bl
cmp bl, byte [edi + 1]
jne 0x40670a
add ecx, 2
add edi, 2
test dl, dl
jne 0x4066e6
xor ecx, ecx
jmp 0x40670f
sbb ecx, ecx
sbb ecx, 0xffffffff
test ecx, ecx
jne 0x406721
mov ecx, dword [esi + 0x4e8]
test ecx, ecx
jne 0x40681e
mov edi, str.msvcrt.dll
mov dl, byte [eax]
mov bl, byte [edi]
mov cl, dl
cmp dl, bl
jne 0x40674e
test cl, cl
je 0x40674a
mov dl, byte [eax + 1]
mov bl, byte [edi + 1]
mov cl, dl
cmp dl, bl
jne 0x40674e
add eax, 2
add edi, 2
test cl, cl
jne 0x406726
xor eax, eax
jmp 0x406753
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x406765
mov eax, dword [esi + 0x4e8]
test eax, eax
jne 0x40681e
push str..reg
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::Find
cmp eax, 0xffffffff
je 0x4067e1
mov eax, dword [ebp - 0x38]
lea ecx, [esi + 0xc4]
push eax
push 0x410650
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
mov ecx, esi
push 1
call sub.MFC42.DLL_CWnd::UpdateData
mov edx, dword [ebp - 0x14]
lea eax, [ebp - 0x18]
push edx
push str.regedit__s___s_
push eax
call sub.MFC42.DLL_CString::Format
mov ecx, dword [ebp - 0x18]
add esp, 0xc
push 1
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
cmp eax, 0x1f
ja 0x4067e1
mov edx, dword [ebp - 0x14]
push eax
push edx
lea eax, [ebp - 0x18]
push 0x410628
push eax
call sub.MFC42.DLL_CString::Format
mov ecx, dword [ebp - 0x18]
add esp, 0x10
push 0
push 0x10
push ecx
call sub.MFC42.DLL_AfxMessageBox
mov edx, dword [esi + 0x130]
lea eax, [ebp - 0x1c]
push edx
push str.FILE_02d
push eax
call sub.MFC42.DLL_CString::Format
mov eax, dword [esi + 0x138]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x1c]
add esp, 0xc
push eax
push ecx
push edx
push str.FILE
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
inc dword [esi + 0x130]
jmp 0x4068ca
mov eax, dword [ebp - 0x38]
lea ecx, [esi + 0xc4]
push eax
push 0x41060c
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
mov ecx, esi
push 0
call sub.MFC42.DLL_CWnd::UpdateData
mov edx, dword [ebp - 0x14]
lea eax, [ebp - 0x18]
push edx
push str.regsvr32__s___s_
push eax
call sub.MFC42.DLL_CString::Format
mov ecx, dword [ebp - 0x18]
add esp, 0xc
push 1
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
cmp eax, 0x1f
ja 0x406888
mov edx, dword [ebp - 0x14]
push eax
push edx
lea eax, [ebp - 0x18]
push 0x410628
push eax
call sub.MFC42.DLL_CString::Format
mov ecx, dword [ebp - 0x18]
add esp, 0x10
push 0
push 0x10
push ecx
call sub.MFC42.DLL_AfxMessageBox
mov eax, dword [esi + 0x4e8]
test eax, eax
jne 0x4068ca
mov edx, dword [esi + 0x134]
lea eax, [ebp - 0x1c]
push edx
push str.OCX_02d
push eax
call sub.MFC42.DLL_CString::Format
mov eax, dword [esi + 0x138]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x1c]
add esp, 0xc
push eax
push ecx
push edx
push 0x4104d0
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
inc dword [esi + 0x134]
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x4068da
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov edi, dword [ebp - 0x28]
mov ebx, dword [esi + 0xd8]
mov eax, dword [edi + 0xa]
mov ecx, dword [edi]
lea edx, [eax + ecx + 0x16]
lea ecx, [esi + 0x60]
add ebx, edx
xor edx, edx
mov eax, ebx
mov dword [esi + 0xd8], ebx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 2
div dword [esi + 0xdc]
push eax
call fcn.004018c0
test edi, edi
je 0x40691d
push edi
call sub.MFC42.DLL_operatordelete
add esp, 4
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 7
call fcn.0040bb3a
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 6
call fcn.0040bb3a
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 5
call fcn.0040bb3a
inc dword [ebp - 0x30]
jmp 0x405f41
mov eax, dword [ebp + 0x10]
mov dword [ebp + 0xc], 1
and eax, 0xffff
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x58], eax
jle 0x406b24
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x406b24
mov edi, dword [sym.imp.USER32.dll_PeekMessageA]
push 1
push 0
push 0
lea eax, [ebp - 0x88]
push 0
push eax
call edi
test eax, eax
je 0x4069bf
mov ebx, dword [sym.imp.USER32.dll_TranslateMessage]
lea ecx, [ebp - 0x88]
push ecx
call ebx
lea edx, [ebp - 0x88]
push edx
call dword [sym.imp.USER32.dll_DispatchMessageA]
push 1
push 0
push 0
lea eax, [ebp - 0x88]
push 0
push eax
call edi
test eax, eax
jne 0x406994
cmp dword [esi + 0x2d4], 1
je 0x406b87
push 0x16
call sub.MFC42.DLL_operatornew
mov edi, eax
xor ecx, ecx
mov edx, edi
add esp, 4
mov dword [edx], ecx
push 0x16
push edi
mov dword [edx + 4], ecx
mov dword [edx + 8], ecx
mov dword [edx + 0xc], ecx
mov dword [edx + 0x10], ecx
mov word [edx + 0x14], cx
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
call dword [eax + 0x3c]
lea ecx, [ebp + 0x14]
push ecx
lea ecx, [ebp - 0x20]
call fcn.0040bcde
mov edx, dword [edi]
inc edx
push edx
call sub.MFC42.DLL_operatornew
mov ecx, dword [ebp + 8]
mov edx, dword [edi]
add esp, 4
mov ebx, eax
mov eax, dword [ecx]
push edx
push ebx
call dword [eax + 0x3c]
mov eax, dword [edi]
push ebx
lea ecx, [ebp - 0x20]
mov byte [eax + ebx], 0
call sub.MFC42.DLL_CString::operator
test ebx, ebx
je 0x406a3b
push ebx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ecx, dword [ebp - 0x20]
lea edx, [esi + 0xc4]
push ecx
push 0x410570
push edx
call sub.MFC42.DLL_CString::Format
mov eax, dword [ebp - 0x20]
add esp, 0xc
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ecx, dword [esi + 0x12c]
lea edx, [ebp - 0x1c]
push ecx
push str.FOLDER_02d
push edx
call sub.MFC42.DLL_CString::Format
mov eax, dword [esi + 0x138]
mov ecx, dword [ebp - 0x1c]
add esp, 0xc
push eax
mov eax, dword [ebp - 0x20]
push eax
push ecx
push str.FOLDER
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov ecx, dword [esi + 0x12c]
mov ebx, dword [esi + 0xd8]
inc ecx
mov dword [esi + 0x12c], ecx
mov edx, dword [edi]
add edx, 0x16
lea ecx, [esi + 0x60]
add ebx, edx
xor edx, edx
mov eax, ebx
mov dword [esi + 0xd8], ebx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 2
div dword [esi + 0xdc]
push eax
call fcn.004018c0
mov eax, dword [edi + 0xe]
xor ebx, ebx
mov bx, word [edi + 0xc]
mov dword [ebp + 0xc], eax
xor eax, eax
mov ax, word [edi + 0xa]
test edi, edi
mov dword [ebp + 0x10], eax
je 0x406aef
push edi
call sub.MFC42.DLL_operatordelete
add esp, 4
push ecx
lea edx, [ebp - 0x20]
mov ecx, esp
mov dword [ebp - 0x5c], esp
push edx
call sub.MFC42.DLL_CString::CString_2
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
push eax
push ebx
push ecx
mov ecx, esi
call fcn.00405ec0
test eax, eax
je 0x406b91
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x58]
inc eax
cmp eax, ecx
mov dword [ebp - 0x30], eax
jl 0x406968
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 4
call fcn.0040bb3a
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 3
call fcn.0040bd0e
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.0040bb3a
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 1
call fcn.0040bb3a
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.0040bb3a
lea ecx, [ebp + 0x14]
mov dword [ebp - 4], 0xffffffff
call fcn.0040bb3a
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov dword [esi + 0x2d4], 3
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 4
call fcn.0040bb3a
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 3
call fcn.0040bd0e
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.0040bb3a
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 1
call fcn.0040bb3a
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.0040bb3a
lea ecx, [ebp + 0x14]
mov dword [ebp - 4], 0xffffffff
call fcn.0040bb3a
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor eax, eax
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x10