Function at 0x413530
Capabilities:
Create directory
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x450a90
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x108
mov eax, dword [0x46b378]
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10c], eax
xor ebx, ebx
xor eax, eax
mov word [esp + 0x18], bx
mov ecx, 0x1c
lea edi, [esp + 0x1a]
rep stosd dword es:[edi], eax
mov word [esp + 0x90], bx
mov ecx, 0x1c
lea edi, [esp + 0x92]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT]
lea eax, [esp + 0x14]
push eax
mov ecx, esi
mov dword [esp + 0x120], ebx
call fcn.00412f10
mov ecx, dword [eax]
push ecx
lea edx, [esp + 0x14]
push str._sdata
push edx
mov byte [esp + 0x128], 1
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::Format]
add esp, 0xc
lea ecx, [esp + 0x14]
mov byte [esp + 0x11c], bl
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
push ebx
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::operator_class_ATL::CSimpleStringT_]
push eax
call dword [sym.imp.MSVCR71.dll__waccess]
add esp, 8
cmp eax, 0xffffffff
jne 0x413604
push ebx
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::operator_class_ATL::CSimpleStringT_]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov edi, dword [sym.imp.MSVCR71.dll_wcslen]
push str.caijingroom
call edi
mov ebx, dword [ebp + 8]
push eax
push str.caijingroom
push ebx
call dword [sym.imp.MSVCR71.dll_wcsncmp]
add esp, 0x10
test eax, eax
jne 0x41362f
mov dword [esi + 0x24], 8
push str.guaguaroom
call edi
push eax
push str.guaguaroom
push ebx
call dword [sym.imp.MSVCR71.dll_wcsncmp]
add esp, 0x10
test eax, eax
jne 0x41364d
mov dword [esi + 0x24], eax
push 0x456e0c
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_1]
lea eax, [esp + 0x14]
mov bl, 2
push eax
mov ecx, esi
mov byte [esp + 0x120], bl
call fcn.00412f10
mov ecx, dword [eax]
push ecx
lea edx, [esp + 0x10]
push str._sdatacommon.dat
push edx
mov byte [esp + 0x128], 3
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::Format]
add esp, 0xc
lea ecx, [esp + 0x14]
mov byte [esp + 0x11c], bl
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
mov eax, dword [esi + 0x24]
test eax, eax
jne 0x4136c7
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::operator_class_ATL::CSimpleStringT_]
push eax
push 0
push str.OEMID
push 0x458ad4
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [esi + 0x24], eax
cmp dword [esi + 0x24], 8
lea ecx, [esp + 0xc]
jne 0x4136e6
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::operator_class_ATL::CSimpleStringT_]
push eax
push 0x38
lea eax, [esp + 0x20]
push eax
push str.caijingroom
jmp 0x4136f9
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::operator_class_ATL::CSimpleStringT_]
push eax
push 0x38
lea ecx, [esp + 0x20]
push ecx
push str.guaguaroom
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push str.UrlProtocol
push 0x458ad4
call edi
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::operator_class_ATL::CSimpleStringT_]
push eax
push 0x38
lea edx, [esp + 0x98]
push edx
push str.guagua
push str.ImProtocol
push 0x458ad4
call edi
lea eax, [esp + 0x18]
push eax
lea ecx, [esi + 0x28]
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::operator_2]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esi + 0x2c]
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::operator_2]
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
mov ecx, dword [esp + 0x114]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x10c]
mov eax, 1
call fcn.004225d1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4