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

Disassembly:
push 0xffffffffffffffff
push 0x41d5ab
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xfb0
push ebx
push ebp
xor ebp, ebp
push esi
push edi
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x70], ebp
lea ecx, [esp + 0x48]
mov dword [esp + 0xfc8], 2
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x24]
mov byte [esp + 0xfc8], 3
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x1c]
mov byte [esp + 0xfc8], 4
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x10]
mov byte [esp + 0xfc8], 5
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x80]
mov byte [esp + 0xfc8], 6
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x2c]
mov byte [esp + 0xfc8], 7
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x78]
mov byte [esp + 0xfc8], 8
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0xa4]
mov byte [esp + 0xfc8], 9
call sub.MFC42.DLL_CFileFind::CFileFind
lea ecx, [esp + 0x20]
mov byte [esp + 0xfc8], 0xa
call sub.MFC42.DLL_CString::CString_2
mov byte [esp + 0xfc8], 0xb
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 8]
lea ecx, [esp + 0xc0]
push 0x500
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0xc0]
lea ecx, [esp + 0x18]
push edx
call sub.MFC42.DLL_CString::CString_1
push 0x5c
lea ecx, [esp + 0x1c]
mov byte [esp + 0xfcc], 0xc
call sub.MFC42.DLL_CString::ReverseFind
push eax
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0xfcc], 0xd
call fcn.0041b82a
mov byte [esp + 0xfc8], 0xc
lea ecx, [esp + 0x3c]
call sub.MFC42.DLL_CString::CString
push str.PathAddbyRegKey
lea ecx, [esp + 0x20]
inc ebp
call fcn.0041b81e
push ebp
lea ecx, [esp + 0x28]
push 0x4290b8
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea edx, [esp + 0x24]
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x64]
push edx
push eax
push ecx
call sub.MFC42.DLL_operator_2
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0xfcc], 0xe
call fcn.0041b82a
lea ecx, [esp + 0x64]
mov byte [esp + 0xfc8], 0xc
call sub.MFC42.DLL_CString::CString
mov edx, dword [esp + 0xfd4]
mov ecx, dword [esp + 0x1c]
push edx
lea eax, [esp + 0x5c4]
push 0x500
push eax
push 0x42a438
push ecx
push str.FileGroup
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x40dac8
lea edx, [esp + 0x5c0]
lea ecx, [esp + 0x2c]
push edx
call fcn.0041b81e
push 0x429094
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CString::Find_1
cmp eax, 0xffffffff
je 0x40d465
push eax
lea eax, [esp + 0x9c]
push eax
lea ecx, [esp + 0x34]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0xfcc], 0xf
call fcn.0041b82a
lea ecx, [esp + 0x98]
mov byte [esp + 0xfc8], 0xc
call sub.MFC42.DLL_CString::CString
push 0x5c
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::ReverseFind
mov esi, eax
lea ecx, [esp + 0x28]
push esi
push ecx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Left
lea ecx, [esp + 0x28]
mov byte [esp + 0xfc8], 0x10
call sub.MFC42.DLL_CString::MakeUpper
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x10]
mov eax, dword [edx - 8]
sub eax, esi
dec eax
push eax
lea eax, [esp + 0x44]
push eax
call sub.MFC42.DLL_CString::Right
push ecx
lea edx, [esp + 0x44]
mov ecx, esp
mov dword [esp + 0xa4], esp
push edx
mov byte [esp + 0xfd0], 0x11
call fcn.0041b7f4
push ecx
lea eax, [esp + 0x30]
mov ecx, esp
mov dword [esp + 0x40], esp
push eax
mov byte [esp + 0xfd4], 0x12
call fcn.0041b7f4
lea ecx, [esp + 0x1c]
mov byte [esp + 0xfd0], 0x11
push ecx
call fcn.00416dc0
add esp, 0xc
mov edx, dword [esp + 0x14]
mov byte [esp + 0xfc8], 0x13
mov eax, dword [edx - 8]
test eax, eax
jne 0x40d6a9
lea edx, [esp + 0x10]
lea eax, [esp + 0x94]
push edx
push 0x429b10
push eax
call sub.MFC42.DLL_operator_1
push 0x429ae4
lea ecx, [esp + 0x60]
push eax
push ecx
mov byte [esp + 0xfd4], 0x14
call sub.MFC42.DLL_operator
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0xfcc], 0x15
call fcn.0041b82a
lea ecx, [esp + 0x5c]
mov byte [esp + 0xfc8], 0x14
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x94]
mov byte [esp + 0xfc8], 0x13
call sub.MFC42.DLL_CString::CString
push ecx
mov ecx, esp
mov dword [esp + 0x3c], esp
lea edx, [esp + 0x24]
push edx
call fcn.0041b7f4
call fcn.00416710
add esp, 4
lea ecx, [esp + 0x14]
mov byte [esp + 0xfc8], 0x11
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x40]
mov byte [esp + 0xfc8], 0x10
call sub.MFC42.DLL_CString::CString
mov byte [esp + 0xfc8], 0xc
lea ecx, [esp + 0x28]
jmp 0x40d460
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
lea ebx, [esp + 0xac0]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0
mov eax, ecx
mov esi, edi
mov edi, ebx
push 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 + 0xac]
call sub.MFC42.DLL_CFileFind::FindFile
test eax, eax
jne 0x40d743
mov ecx, dword [esp + 0x14]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov esi, eax
test esi, esi
je 0x40d754
lea edx, [esp + 0x14]
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 + 0x3c], esp
push edx
mov byte [esp + 0xfd0], 0x16
call fcn.0041b7f4
mov eax, dword [esp + 0x50]
mov ecx, dword [eax + 0x68]
call fcn.00411280
lea ecx, [esp + 0x50]
mov byte [esp + 0xfc8], 0x13
call sub.MFC42.DLL_CString::CString
jmp 0x40d870
lea ecx, [esp + 0xa4]
call sub.MFC42.DLL_CFileFind::Close
jmp 0x40d870
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CString::CString_2
push 1
push 0x5c
lea ecx, [esp + 0x44]
mov byte [esp + 0xfd0], 0x17
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esp + 0x54]
push 1
push ecx
lea ecx, [esp + 0x1c]
mov byte [esp + 0xfd0], 0x18
call sub.MFC42.DLL_CString::Right
mov edx, dword [esp + 0x3c]
mov eax, dword [eax]
push edx
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
lea ecx, [esp + 0x54]
test eax, eax
setne bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x3c]
mov byte [esp + 0xfc8], 0x17
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x40d7f8
lea eax, [esp + 0x14]
push str..
lea ecx, [esp + 0xa0]
push eax
push ecx
call sub.MFC42.DLL_operator
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0xfcc], 0x19
call fcn.0041b82a
mov byte [esp + 0xfc8], 0x17
lea ecx, [esp + 0x9c]
jmp 0x40d82a
lea edx, [esp + 0x14]
push 0x429548
lea eax, [esp + 0x70]
push edx
push eax
call sub.MFC42.DLL_operator
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0xfcc], 0x1a
call fcn.0041b82a
mov byte [esp + 0xfc8], 0x17
lea ecx, [esp + 0x6c]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x30]
push 0
push ecx
lea ecx, [esp + 0xac]
call sub.MFC42.DLL_CFileFind::FindFile
test eax, eax
je 0x40d857
lea ecx, [esp + 0xa4]
mov esi, 1
call sub.MFC42.DLL_CFileFind::Close
lea ecx, [esp + 0x30]
mov byte [esp + 0xfc8], 0x13
call sub.MFC42.DLL_CString::CString
test esi, esi
je 0x40da5c
lea edx, [esp + 0x18]
push str._Data_Reg
lea eax, [esp + 0x94]
push edx
push eax
call sub.MFC42.DLL_operator
lea ecx, [esp + 0x24]
lea edx, [esp + 0x44]
push ecx
push eax
push edx
mov byte [esp + 0xfd4], 0x1b
call sub.MFC42.DLL_operator_2
lea ecx, [esp + 0x90]
mov byte [esp + 0xfc8], 0x1d
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x44]
lea ecx, [esp + 0x44]
mov eax, dword [eax - 8]
push eax
call sub.MFC42.DLL_CString::GetBuffer
mov edx, dword [esp + 0x4c]
lea ecx, [esp + 0xac0]
push ecx
push eax
mov ecx, dword [edx + 0x68]
call fcn.00410890
lea ecx, [esp + 0x34]
mov esi, eax
call sub.MFC42.DLL_CString::CString_2
lea eax, [esp + 0x10]
mov byte [esp + 0xfc8], 0x1e
test esi, esi
push eax
push 0x4296cc
je 0x40d9c0
lea ecx, [esp + 0x90]
push ecx
call sub.MFC42.DLL_operator_1
push 0x429a6c
lea edx, [esp + 0x78]
push eax
push edx
mov byte [esp + 0xfd4], 0x1f
call sub.MFC42.DLL_operator
push eax
lea ecx, [esp + 0x38]
mov byte [esp + 0xfcc], 0x20
call fcn.0041b82a
lea ecx, [esp + 0x74]
mov byte [esp + 0xfc8], 0x1f
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x88]
mov byte [esp + 0xfc8], 0x1e
call sub.MFC42.DLL_CString::CString
lea eax, [esp + 0x24]
lea ecx, [esp + 0x8c]
push eax
push 0x429abc
push ecx
call sub.MFC42.DLL_operator_1
push 0x429a58
lea edx, [esp + 0x80]
push eax
push edx
mov byte [esp + 0xfd4], 0x21
call sub.MFC42.DLL_operator
push eax
lea ecx, [esp + 0x4c]
mov byte [esp + 0xfcc], 0x22
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x7c]
mov byte [esp + 0xfc8], 0x21
call sub.MFC42.DLL_CString::CString
mov byte [esp + 0xfc8], 0x1e
lea ecx, [esp + 0x8c]
jmp 0x40da17
lea ecx, [esp + 0x60]
push ecx
call sub.MFC42.DLL_operator_1
push 0x429a50
lea edx, [esp + 0x88]
push eax
push edx
mov byte [esp + 0xfd4], 0x23
call sub.MFC42.DLL_operator
push eax
lea ecx, [esp + 0x38]
mov byte [esp + 0xfcc], 0x24
call fcn.0041b82a
lea ecx, [esp + 0x84]
mov byte [esp + 0xfc8], 0x23
call sub.MFC42.DLL_CString::CString
mov byte [esp + 0xfc8], 0x1e
lea ecx, [esp + 0x58]
call sub.MFC42.DLL_CString::CString
push ecx
lea eax, [esp + 0x38]
mov ecx, esp
mov dword [esp + 0x3c], esp
push eax
call fcn.0041b7f4
call fcn.00416710
add esp, 4
lea ecx, [esp + 0x34]
mov byte [esp + 0xfc8], 0x1d
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x44]
mov byte [esp + 0xfc8], 0x13
call sub.MFC42.DLL_CString::CString
jmp 0x40d676
lea ecx, [esp + 0x10]
lea edx, [esp + 0x68]
push ecx
push 0x429a9c
push edx
call sub.MFC42.DLL_operator_1
push 0x429a1c
push eax
lea eax, [esp + 0x68]
mov byte [esp + 0xfd0], 0x25
push eax
call sub.MFC42.DLL_operator
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0xfcc], 0x26
call fcn.0041b82a
lea ecx, [esp + 0x60]
mov byte [esp + 0xfc8], 0x25
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x68]
mov byte [esp + 0xfc8], 0x13
call sub.MFC42.DLL_CString::CString
push ecx
mov ecx, esp
mov dword [esp + 0x3c], esp
jmp 0x40d664
lea ecx, [esp + 0xa4]
call sub.MFC42.DLL_CFileFind::Close
mov esi, dword [esp + 0xfd0]
lea eax, [esp + 0x48]
push eax
mov ecx, esi
call fcn.0041b7f4
mov dword [esp + 0x70], 1
lea ecx, [esp + 0x18]
mov byte [esp + 0xfc8], 0xb
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x20]
mov byte [esp + 0xfc8], 0xa
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xa4]
mov byte [esp + 0xfc8], 9
call fcn.0041ba10
lea ecx, [esp + 0x78]
mov byte [esp + 0xfc8], 8
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x2c]
mov byte [esp + 0xfc8], 7
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x80]
mov byte [esp + 0xfc8], 6
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0xfc8], 5
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0xfc8], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x24]
mov byte [esp + 0xfc8], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x48]
mov byte [esp + 0xfc8], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xfd4]
mov byte [esp + 0xfc8], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xfd8]
mov byte [esp + 0xfc8], 0
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0xfc0]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0xfbc
ret 0xc