Function at 0x408f30
Capabilities:
Create directory
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4980ae
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
mov eax, dword [esp + 0x2c]
push ebx
push ebp
push esi
push edi
push eax
mov esi, ecx
push 0x66
mov dword [esp + 0x20], esi
call fcn.004962ac
xor ebx, ebx
push ebx
lea ecx, [esi + 0x74]
mov dword [esp + 0x38], ebx
mov dword [esi], 0x4a1698
call fcn.00419490
lea ebp, [esi + 0x154]
mov ecx, ebp
call dword [0x49f754]
lea ecx, [esi + 0x158]
mov byte [esp + 0x34], 2
call fcn.00425990
lea edi, [esi + 0x39c]
mov ecx, edi
mov byte [esp + 0x34], 3
call fcn.00496402
mov dword [edi], 0x4a13f0
mov dword [esi + 0x4b8], ebx
lea ecx, [esi + 0x4c4]
mov dword [esi + 0x4bc], ebx
mov dword [esi + 0x4c0], ebx
call dword [0x49f754]
lea ecx, [esi + 0x4c8]
call dword [0x49f754]
lea ecx, [esi + 0x4cc]
call dword [0x49f754]
lea ecx, [esi + 0x4d0]
call dword [0x49f754]
lea ecx, [esi + 0x4e0]
call dword [0x49f754]
push 0x4a095c
lea ecx, [esi + 0x52c]
mov byte [esp + 0x38], 9
mov dword [esi + 0x524], ebx
mov dword [esi + 0x528], ebx
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_3]
push 0x8c
mov byte [esp + 0x38], 0xa
mov byte [esi + 0x530], bl
call sub.MFC71.DLL_operator_new_1
add esp, 4
mov dword [esp + 0x14], eax
cmp eax, ebx
mov byte [esp + 0x34], 0xb
je 0x409048
push esi
mov ecx, eax
call fcn.0042fdc0
jmp 0x40904a
xor eax, eax
push ebx
push ebx
push ebx
mov ecx, eax
mov byte [esp + 0x40], 0xa
mov dword [esi + 0x524], eax
call sub.MFC71.DLL_CWinThread::CreateThread
push 0x83
push 0xe
push 0x83
call sub.MFC71.DLL_AfxFindResourceHandle
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
push str.configconfig.ini
lea ecx, [esp + 0x14]
push 0x4bc618
push ecx
mov dword [esi + 0x15c], eax
call fcn.00401050
add esp, 0xc
push ebx
lea ecx, [esp + 0x14]
mov byte [esp + 0x38], 0xc
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
call dword [sym.imp.MSVCR71.dll__access]
add esp, 8
test eax, eax
je 0x409126
push str.config_
lea edx, [esp + 0x18]
push 0x4bc618
push edx
call fcn.00401050
add esp, 0xc
push ebx
mov ecx, eax
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x1c]
call sub.MFC71.DLL_CFile::CFile
push ebx
push 0x1002
lea ecx, [esp + 0x18]
mov byte [esp + 0x3c], 0xd
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
lea ecx, [esp + 0x28]
call sub.MFC71.DLL_CFile::Open
test eax, eax
je 0x409118
lea ecx, [esp + 0x1c]
call sub.MFC71.DLL_CFile::Close
lea ecx, [esp + 0x1c]
mov byte [esp + 0x34], 0xc
call fcn.004963ae
push ecx
lea eax, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x18], esp
push eax
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_2]
lea ecx, [esi + 0x158]
call fcn.004259a0
push 0xd4
call sub.MFC71.DLL_operator_new_1
add esp, 4
mov dword [esp + 0x14], eax
cmp eax, ebx
mov byte [esp + 0x34], 0xe
je 0x409166
mov ecx, eax
call fcn.00405380
jmp 0x409168
xor eax, eax
mov byte [esp + 0x34], 0xc
mov dword [esi + 0x160], eax
mov dword [esi + 0x168], ebx
mov dword [esi + 0x164], ebx
call fcn.00430480
mov dword [esi + 0x184], eax
xor eax, eax
mov dword [esi + 0x28c], ebx
mov ecx, 0x41
lea edi, [esi + 0x188]
rep stosd dword es:[edi], eax
mov ecx, 0x41
lea edi, [esi + 0x290]
rep stosd dword es:[edi], eax
mov edi, 1
push 0x4a095c
mov ecx, ebp
mov dword [esi + 0x16c], ebx
mov dword [esi + 0x170], ebx
mov dword [esi + 0x174], ebx
mov dword [esi + 0x178], edi
call dword [sym.imp.MFC71.DLL_ATL::CStringT::operator_3]
push 0x104
lea ecx, [esi + 0x3b0]
push ecx
mov dword [esi + 0x394], ebx
mov dword [esi + 0x17c], ebx
mov dword [esi + 0x4ec], edi
mov dword [esi + 0x4f0], ebx
mov dword [esi + 0x500], ebx
mov dword [esi + 0x4f4], 0x400
mov dword [esi + 0x4f8], ebx
mov dword [esi + 0x4fc], 0x12c
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov eax, dword [esp + 0x3c]
mov edx, dword [esi]
push eax
push 0x66
mov ecx, esi
mov dword [esi + 0x4b4], ebx
mov dword [esi + 0x504], edi
mov dword [esi + 0x520], ebx
mov dword [esi + 0x4d4], ebx
mov dword [esi + 0x4d8], ebx
mov dword [esi + 0x4dc], ebx
mov dword [esi + 0x180], ebx
mov dword [esi + 0x508], ebx
call dword [edx + 0x13c]
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov ecx, dword [esp + 0x2c]
pop edi
mov eax, esi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x28
ret 4