Function at 0x4e2290
Capabilities:
Create directory
Query environment variable
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x5411d0
mov eax, dword fs:[0]
push eax
sub esp, 0x228
mov eax, dword [0x5c403c]
xor eax, esp
mov dword [esp + 0x224], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5c403c]
xor eax, esp
push eax
lea eax, [esp + 0x23c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x24c]
mov eax, ebp
mov dword [esp + 0x24], ebp
call fcn.004a6e70
xor ebx, ebx
mov dword [esp + 0x244], ebx
lea esi, [ebp + 4]
mov ecx, esi
mov dword [ebp], vtable.CProfileManager.0
call dword [0x55a6c4]
mov byte [esp + 0x244], 1
lea edi, [ebp + 8]
mov ecx, edi
call dword [0x55a6c4]
mov byte [esp + 0x244], 2
lea ecx, [ebp + 0xc]
call dword [0x55a6c4]
mov byte [esp + 0x244], 3
lea ecx, [ebp + 0x10]
call dword [0x55a6c4]
mov byte [esp + 0x244], 4
lea ecx, [ebp + 0x14]
call dword [0x55a6c4]
mov byte [esp + 0x244], 5
lea eax, [ebp + 0x18]
push eax
call fcn.00480490
mov byte [esp + 0x244], 6
lea eax, [ebp + 0x30]
push eax
call fcn.0043a130
mov byte [esp + 0x244], 7
lea ecx, [ebp + 0x210]
push ecx
call fcn.004d3aa0
mov byte [esp + 0x244], 8
push ebx
push ebx
push 0x4e2010
push str.WTW_Profile_GetName
push ebx
mov dword [ebp + 0x230], ebx
call fcn.004b3880
push ebx
push ebp
push 0x4e2930
push str.WTW_GetProfileDirPtr
push ebx
call fcn.004b3880
push ebx
push ebp
push 0x4e2940
push str.WTW_GetProfileDirPtrEx
push ebx
call fcn.004b3880
push ebx
push ebp
push 0x4e2960
push str.WTW_GetProfileNamePtrEx
push ebx
call fcn.004b3880
push 0x208
lea eax, [esp + 0x2e]
xor edx, edx
push ebx
push eax
mov word [esp + 0x34], dx
call sub.MSVCR90.dll_memset
add esp, 0xc
push 0x105
lea ecx, [esp + 0x2c]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
cmp eax, ebx
jle 0x4e241a
mov ecx, 0x5c
cmp word [esp + eax*2 + 0x28], cx
je 0x4e2413
dec eax
cmp eax, ebx
jg 0x4e2405
jmp 0x4e241a
xor edx, edx
mov word [esp + eax*2 + 0x2a], dx
lea eax, [esp + 0x28]
push eax
mov ecx, esi
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_3]
push 0x589204
mov ecx, esi
call dword [0x55a294]
lea ecx, [esp + 0x28]
push ecx
lea ecx, [ebp + 0x10]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_3]
mov eax, dword [esi]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push eax
call ebx
lea ecx, [esp + 0x20]
call dword [0x55a6c4]
mov byte [esp + 0x244], 9
mov edx, dword [esi]
mov esi, dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Format]
push edx
push 1
lea eax, [esp + 0x28]
push str.Initialize__phase__d:_r_n_t__s
push eax
call esi
add esp, 0x10
cmp dword [0x5c7004], 0
je 0x4e24ff
push 0x55ae9c
lea ecx, [esp + 0x1c]
call dword [0x55a504]
mov byte [esp + 0x244], 0xa
push str.PRFL
lea ecx, [esp + 0x20]
call dword [0x55a504]
mov byte [esp + 0x244], 0xb
mov esi, dword [0x5c7004]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x20]
push edx
mov ecx, 5
lea ebx, [esp + 0x28]
call fcn.00433ab0
mov byte [esp + 0x244], 0xa
lea ecx, [esp + 0x1c]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov byte [esp + 0x244], 9
lea ecx, [esp + 0x18]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov esi, dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Format]
push 0x105
lea eax, [esp + 0x2c]
push eax
push str.APPDATA
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x4e25d2
lea ecx, [esp + 0x28]
push ecx
mov ecx, edi
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_3]
push str..wtw_
mov ecx, edi
call dword [0x55a294]
mov eax, dword [edi]
push 0
push eax
call ebx
push edi
lea ecx, [ebp + 0x14]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_2]
push 0x589204
mov ecx, edi
call dword [0x55a294]
mov eax, dword [edi]
push 0
push eax
call ebx
mov edx, dword [edi]
push edx
push 2
lea eax, [esp + 0x28]
push str.Initialize__phase__d:_r_n_t__s
push eax
call esi
add esp, 0x10
cmp dword [0x5c7004], 0
je 0x4e2661
push 0x55ae9c
lea ecx, [esp + 0x20]
call dword [0x55a504]
mov byte [esp + 0x244], 0xc
push str.PRFL
lea ecx, [esp + 0x1c]
call dword [0x55a504]
mov byte [esp + 0x244], 0xd
mov esi, dword [0x5c7004]
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x1c]
push edx
mov ecx, 5
lea ebx, [esp + 0x28]
call fcn.00433ab0
mov byte [esp + 0x244], 0xc
jmp 0x4e2645
push str.Error
push 2
lea eax, [esp + 0x28]
push str.Initialize__phase__d:_r_n_t__s
push eax
call esi
add esp, 0x10
cmp dword [0x5c7004], 0
je 0x4e2661
push 0x55ae9c
lea ecx, [esp + 0x20]
call dword [0x55a504]
mov byte [esp + 0x244], 0xe
push str.PRFL
lea ecx, [esp + 0x1c]
call dword [0x55a504]
mov byte [esp + 0x244], 0xf
mov esi, dword [0x5c7004]
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x1c]
push edx
mov ecx, 5
lea ebx, [esp + 0x28]
call fcn.00433ab0
mov byte [esp + 0x244], 0xe
lea ecx, [esp + 0x18]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov byte [esp + 0x244], 9
lea ecx, [esp + 0x1c]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
lea eax, [ebp + 0x10]
push eax
lea eax, [esp + 0x1c]
push eax
mov edi, str.wtw.ini
call fcn.0040f2b0
add esp, 8
mov byte [esp + 0x244], 0x10
mov eax, dword [eax]
push eax
push 0x200
lea esi, [ebp + 0xc]
push 0x200
mov ecx, esi
call dword [sym.imp.mfc90u.dll_ATL::CSimpleStringT_wchar_t_1_::GetBuffer]
push eax
push 0
push str.path
push 0x56f23c
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov byte [esp + 0x244], 9
lea ecx, [esp + 0x18]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
push 0xffffffffffffffff
mov ecx, esi
call dword [sym.imp.mfc90u.dll_ATL::CSimpleStringT_wchar_t_1_::ReleaseBuffer]
mov ecx, dword [esi]
cmp dword [ecx - 0xc], 3
jge 0x4e26e1
push str.Skipped__no_data
push 3
push str.Initialize__phase__d:_r_n_t__s
lea edx, [esp + 0x2c]
push edx
jmp 0x4e270f
push str.profiles_
mov ecx, esi
call dword [0x55a294]
push 0x56152c
push 0x561530
mov ecx, esi
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Replace]
mov eax, dword [esi]
push eax
push 3
push str.Initialize__phase__d:_r_n_t__s
lea ecx, [esp + 0x2c]
push ecx
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Format]
add esp, 0x10
cmp dword [0x5c7004], 0
je 0x4e2791
push 0x55ae9c
lea ecx, [esp + 0x20]
call dword [0x55a504]
mov byte [esp + 0x244], 0x11
push str.PRFL
lea ecx, [esp + 0x1c]
call dword [0x55a504]
mov byte [esp + 0x244], 0x12
mov esi, dword [0x5c7004]
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x1c]
push eax
mov ecx, 5
lea ebx, [esp + 0x28]
call fcn.00433ab0
mov byte [esp + 0x244], 0x11
lea ecx, [esp + 0x18]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov byte [esp + 0x244], 9
lea ecx, [esp + 0x1c]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
lea eax, [ebp + 0x18]
call fcn.004e4c90
mov byte [esp + 0x244], 8
lea ecx, [esp + 0x20]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov dword [esp + 0x244], 0xffffffff
mov eax, ebp
mov ecx, dword [esp + 0x23c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x224]
xor ecx, esp
call fcn.00532776
add esp, 0x234
ret 4