Function at 0x40c7a0
Capabilities:
Create directory
Read .ini file
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x41d375
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xfa8
push ebx
push ebp
push esi
push edi
mov ebp, ecx
mov dword [esp + 0x78], 0
lea ecx, [esp + 0x38]
mov dword [esp + 0xfc0], 2
mov dword [esp + 0x3c], 1
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x24]
mov byte [esp + 0xfc0], 3
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x1c]
mov byte [esp + 0xfc0], 4
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x10]
mov byte [esp + 0xfc0], 5
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x4c]
mov byte [esp + 0xfc0], 6
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x18]
mov byte [esp + 0xfc0], 7
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x14]
mov byte [esp + 0xfc0], 8
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x98]
mov byte [esp + 0xfc0], 9
call sub.MFC42.DLL_CFileFind::CFileFind
mov byte [esp + 0xfc0], 0xa
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 8]
lea ecx, [esp + 0x5b8]
push 0x500
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x5b8]
lea ecx, [esp + 0x20]
push edx
call sub.MFC42.DLL_CString::CString_1
push 0x5c
lea ecx, [esp + 0x24]
mov byte [esp + 0xfc4], 0xb
call sub.MFC42.DLL_CString::ReverseFind
push eax
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0xfc4], 0xc
call fcn.0041b82a
lea ecx, [esp + 0x30]
mov byte [esp + 0xfc0], 0xb
call sub.MFC42.DLL_CString::CString
push str.Custom
lea ecx, [esp + 0x20]
call fcn.0041b81e
mov ecx, dword [esp + 0x3c]
lea edx, [esp + 0x24]
push ecx
push 0x4290b8
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea eax, [esp + 0x24]
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x94]
push eax
push ecx
push edx
call sub.MFC42.DLL_operator_2
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0xfc4], 0xd
call fcn.0041b82a
lea ecx, [esp + 0x94]
mov byte [esp + 0xfc0], 0xb
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0xfcc]
mov edx, dword [esp + 0x1c]
push eax
lea ecx, [esp + 0xbc]
push 0x500
push ecx
push 0x42a438
push edx
push str.FileGroup
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x40cf2a
lea eax, [esp + 0xb8]
lea ecx, [esp + 0x18]
push eax
call fcn.0041b81e
push 0x429094
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::Find_1
mov esi, eax
cmp esi, 0xffffffff
je 0x40cf21
lea ecx, [esp + 0x88]
push esi
push ecx
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0xfc4], 0xe
call fcn.0041b82a
lea ecx, [esp + 0x88]
mov byte [esp + 0xfc0], 0xb
call sub.MFC42.DLL_CString::CString
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x18]
mov eax, dword [edx - 8]
sub eax, esi
dec eax
push eax
lea eax, [esp + 0x60]
push eax
call sub.MFC42.DLL_CString::Right
push eax
lea ecx, [esp + 0x50]
mov byte [esp + 0xfc4], 0xf
call fcn.0041b82a
lea ecx, [esp + 0x5c]
mov byte [esp + 0xfc0], 0xb
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x18]
call fcn.0041b82a
mov edx, dword [esp + 0x10]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea ebx, [esp + 0xab8]
mov eax, ecx
mov esi, edi
mov edi, ebx
push 0
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0xa0]
call sub.MFC42.DLL_CFileFind::FindFile
test eax, eax
lea ecx, [esp + 0x98]
jne 0x40cc55
call sub.MFC42.DLL_CFileFind::Close
lea ecx, [esp + 0x34]
call sub.MFC42.DLL_CString::CString_2
push 3
push 0x429044
lea ecx, [esp + 0x1c]
mov byte [esp + 0xfc8], 0x10
call sub.MFC42.DLL_CString::Find_3
mov esi, eax
test esi, esi
jle 0x40cb3f
lea ecx, [esp + 0x54]
push esi
push ecx
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0x38]
mov byte [esp + 0xfc4], 0x11
call fcn.0041b82a
lea ecx, [esp + 0x54]
mov byte [esp + 0xfc0], 0x10
call sub.MFC42.DLL_CString::CString
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x14]
mov eax, dword [edx - 8]
sub eax, esi
dec eax
push eax
lea eax, [esp + 0x68]
push eax
call sub.MFC42.DLL_CString::Right
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0xfc4], 0x12
call fcn.0041b82a
lea ecx, [esp + 0x64]
mov byte [esp + 0xfc0], 0x10
call sub.MFC42.DLL_CString::CString
push ecx
lea edx, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0xb8], esp
push edx
call fcn.0041b7f4
push ecx
lea eax, [esp + 0x3c]
mov ecx, esp
mov dword [esp + 0x4c], esp
push eax
mov byte [esp + 0xfcc], 0x13
call fcn.0041b7f4
mov ecx, ebp
mov byte [esp + 0xfc8], 0x10
call fcn.0040d040
mov esi, eax
jmp 0x40cb98
mov ecx, dword [esp + 0x14]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov esi, eax
test esi, esi
je 0x40cb98
lea edx, [esp + 0x10]
lea eax, [esp + 0x50]
push edx
push str.Made_Dir:
push eax
call sub.MFC42.DLL_operator_1
push ecx
lea edx, [esp + 0x54]
mov ecx, esp
mov dword [esp + 0x48], esp
push edx
mov byte [esp + 0xfc8], 0x14
call fcn.0041b7f4
mov ecx, dword [ebp + 0x68]
call fcn.00411280
lea ecx, [esp + 0x50]
mov byte [esp + 0xfc0], 0x10
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x34]
mov byte [esp + 0xfc0], 0xb
call sub.MFC42.DLL_CString::CString
test esi, esi
jne 0x40ccda
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CString::CString_2
push 1
push 0x5c
lea ecx, [esp + 0x50]
mov byte [esp + 0xfc8], 0x15
call sub.MFC42.DLL_CString::CString_3
lea eax, [esp + 0x84]
push 1
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0xfc8], 0x16
call sub.MFC42.DLL_CString::Right
mov ecx, dword [esp + 0x48]
mov eax, dword [eax]
push ecx
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
lea ecx, [esp + 0x84]
test eax, eax
setne bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x48]
mov byte [esp + 0xfc0], 0x15
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x40cc5c
lea edx, [esp + 0x10]
push str..
lea eax, [esp + 0x70]
push edx
push eax
call sub.MFC42.DLL_operator
push eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0xfc4], 0x17
call fcn.0041b82a
mov byte [esp + 0xfc0], 0x15
lea ecx, [esp + 0x6c]
jmp 0x40cc94
call sub.MFC42.DLL_CFileFind::Close
jmp 0x40ccda
lea ecx, [esp + 0x10]
push 0x429548
lea edx, [esp + 0x94]
push ecx
push edx
call sub.MFC42.DLL_operator
push eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0xfc4], 0x18
call fcn.0041b82a
mov byte [esp + 0xfc0], 0x15
lea ecx, [esp + 0x90]
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x28]
push 0
push eax
lea ecx, [esp + 0xa0]
call sub.MFC42.DLL_CFileFind::FindFile
test eax, eax
je 0x40ccc1
lea ecx, [esp + 0x98]
mov esi, 1
call sub.MFC42.DLL_CFileFind::Close
lea ecx, [esp + 0x28]
mov byte [esp + 0xfc0], 0xb
call sub.MFC42.DLL_CString::CString
test esi, esi
je 0x40ceba
lea ecx, [esp + 0x20]
push str._Data_C
lea edx, [esp + 0x78]
push ecx
push edx
call sub.MFC42.DLL_operator
lea ecx, [esp + 0x24]
lea edx, [esp + 0x40]
push ecx
push eax
push edx
mov byte [esp + 0xfcc], 0x19
call sub.MFC42.DLL_operator_2
lea ecx, [esp + 0x74]
mov byte [esp + 0xfc0], 0x1b
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x40]
lea ecx, [esp + 0x40]
mov eax, dword [eax - 8]
push eax
call sub.MFC42.DLL_CString::GetBuffer
lea ecx, [esp + 0xab8]
push ecx
mov ecx, dword [ebp + 0x68]
push eax
call fcn.00410890
lea ecx, [esp + 0x2c]
mov esi, eax
call sub.MFC42.DLL_CString::CString_2
lea edx, [esp + 0x10]
mov byte [esp + 0xfc0], 0x1c
test esi, esi
push edx
push 0x4296cc
je 0x40ce20
lea eax, [esp + 0x84]
push eax
call sub.MFC42.DLL_operator_1
push 0x429a6c
lea ecx, [esp + 0x84]
push eax
push ecx
mov byte [esp + 0xfcc], 0x1d
call sub.MFC42.DLL_operator
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0xfc4], 0x1e
call fcn.0041b82a
lea ecx, [esp + 0x80]
mov byte [esp + 0xfc0], 0x1d
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x7c]
mov byte [esp + 0xfc0], 0x1c
call sub.MFC42.DLL_CString::CString
lea edx, [esp + 0x24]
lea eax, [esp + 0x58]
push edx
push 0x429a5c
push eax
call sub.MFC42.DLL_operator_1
push 0x429a58
lea ecx, [esp + 0x90]
push eax
push ecx
mov byte [esp + 0xfcc], 0x1f
call sub.MFC42.DLL_operator
push eax
lea ecx, [esp + 0x3c]
mov byte [esp + 0xfc4], 0x20
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x8c]
mov byte [esp + 0xfc0], 0x1f
call sub.MFC42.DLL_CString::CString
mov byte [esp + 0xfc0], 0x1c
lea ecx, [esp + 0x58]
jmp 0x40ce71
lea eax, [esp + 0x70]
push eax
call sub.MFC42.DLL_operator_1
push 0x429a50
lea ecx, [esp + 0x64]
push eax
push ecx
mov byte [esp + 0xfcc], 0x21
call sub.MFC42.DLL_operator
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0xfc4], 0x22
call fcn.0041b82a
lea ecx, [esp + 0x60]
mov byte [esp + 0xfc0], 0x21
call sub.MFC42.DLL_CString::CString
mov byte [esp + 0xfc0], 0x1c
lea ecx, [esp + 0x68]
call sub.MFC42.DLL_CString::CString
push ecx
lea edx, [esp + 0x30]
mov ecx, esp
mov dword [esp + 0x48], esp
push edx
call fcn.0041b7f4
call fcn.00416710
add esp, 4
lea ecx, [esp + 0x2c]
mov byte [esp + 0xfc0], 0x1b
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x40]
mov byte [esp + 0xfc0], 0xb
call sub.MFC42.DLL_CString::CString
inc dword [esp + 0x3c]
jmp 0x40c8d9
lea eax, [esp + 0x10]
lea ecx, [esp + 0x70]
push eax
push 0x429a3c
push ecx
call sub.MFC42.DLL_operator_1
push 0x429a1c
lea edx, [esp + 0x34]
push eax
push edx
mov byte [esp + 0xfcc], 0x23
call sub.MFC42.DLL_operator
lea ecx, [esp + 0x70]
mov byte [esp + 0xfc0], 0x25
call sub.MFC42.DLL_CString::CString
push ecx
lea eax, [esp + 0x34]
mov ecx, esp
mov dword [esp + 0x48], esp
push eax
call fcn.0041b7f4
call fcn.00416710
add esp, 4
lea ecx, [esp + 0x30]
mov byte [esp + 0xfc0], 0xb
call sub.MFC42.DLL_CString::CString
inc dword [esp + 0x3c]
jmp 0x40c8d9
lea ecx, [esp + 0x98]
call sub.MFC42.DLL_CFileFind::Close
mov esi, dword [esp + 0xfc8]
lea ecx, [esp + 0x38]
push ecx
mov ecx, esi
call fcn.0041b7f4
mov dword [esp + 0x78], 1
lea ecx, [esp + 0x20]
mov byte [esp + 0xfc0], 0xa
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x98]
mov byte [esp + 0xfc0], 9
call fcn.0041ba10
lea ecx, [esp + 0x14]
mov byte [esp + 0xfc0], 8
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0xfc0], 7
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x4c]
mov byte [esp + 0xfc0], 6
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0xfc0], 5
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0xfc0], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x24]
mov byte [esp + 0xfc0], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x38]
mov byte [esp + 0xfc0], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xfcc]
mov byte [esp + 0xfc0], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xfd0]
mov byte [esp + 0xfc0], 0
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0xfb8]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0xfb4
ret 0xc