Function at 0x41f650
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x446992
mov eax, dword fs:[0]
push eax
sub esp, 0x66c
mov eax, dword [0x467a74]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
call sub.mfc100u.dll_CWinApp::InitInstance
xor ebx, ebx
push ebx
push str.5176GamePlaza
push ebx
lea ecx, [ebp - 0x644]
mov byte [ebp - 0x639], bl
call sub.mfc100u.dll_CMutex::CMutex
push ebx
lea ecx, [ebp - 0x644]
mov dword [ebp - 4], ebx
call sub.mfc100u.dll_CSyncObject::Lock
test eax, eax
jne 0x41f6b9
mov byte [ebp - 0x639], 1
push ebx
push str.5176GamePlaza
call dword [sym.imp.USER32.dll_FindWindowW]
push eax
call sub.mfc100u.dll_CWnd::FromHandle
mov edi, eax
cmp edi, ebx
je 0x41f711
mov eax, dword [edi + 0x20]
push eax
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x41f6e8
push 9
mov ecx, edi
call sub.mfc100u.dll_CWnd::ShowWindow
mov ecx, dword [edi + 0x20]
push ecx
call dword [sym.imp.USER32.dll_SetActiveWindow]
push eax
call sub.mfc100u.dll_CWnd::FromHandle
mov edx, dword [edi + 0x20]
push edx
call dword [sym.imp.USER32.dll_BringWindowToTop]
mov eax, dword [edi + 0x20]
push eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
jmp 0x41f918
cmp byte [ebp - 0x639], 1
je 0x41f918
call fcn.0041f2d0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call fcn.0041f3e0
add esp, 4
cmp edi, eax
mov edi, dword [sym.imp.ServiceCore.dll_public:_static_bool___cdecl_CWHService::GetWorkDirectory_wchar_t__const__unsigned_short_int_]
jne 0x41f7c6
mov edx, dword [esi]
mov eax, dword [edx + 0x70]
mov ecx, esi
call eax
push 0x206
lea edx, [ebp - 0x626]
xor ecx, ecx
push ebx
push edx
mov word [ebp - 0x628], cx
call sub.MSVCR100.dll_memset
push 0x206
lea ecx, [ebp - 0x41e]
xor eax, eax
push ebx
push ecx
mov word [ebp - 0x420], ax
call sub.MSVCR100.dll_memset
lea edx, [ebp - 0x628]
push 0x104
push edx
call edi
lea eax, [ebp - 0x628]
push eax
push str._sAutoUpdate.exe
lea ecx, [ebp - 0x420]
push 0x104
push ecx
call dword [sym.imp.MSVCR100.dll__snwprintf]
add esp, 0x30
lea edx, [ebp - 0x420]
push edx
mov ecx, esi
call fcn.0041f470
test eax, eax
jne 0x41f918
call sub.mfc100u.dll_AfxOleInit
call sub.mfc100u.dll_AfxInitRichEdit2
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
push ebx
call sub.mfc100u.dll_AfxEnableControlContainer
push ebx
call dword [sym.imp.MSVCR100.dll__time64]
push eax
call dword [sym.imp.MSVCR100.dll_srand]
add esp, 0xc
push str.5176GamePlatform
mov ecx, esi
call sub.mfc100u.dll_CWinApp::SetRegistryKey
push 0x206
lea ecx, [ebp - 0x216]
xor eax, eax
push ebx
push ecx
mov word [ebp - 0x218], ax
call sub.MSVCR100.dll_memset
lea edx, [ebp - 0x218]
push 0x104
push edx
call edi
add esp, 0x14
lea ecx, [ebp - 0x64c]
call dword [sym.imp.ServiceCore.dll_public:_void___thiscall_CWHRegKey::constructor_void_]
push 1
push 0x44b36c
lea ecx, [ebp - 0x64c]
mov byte [ebp - 4], 1
call dword [sym.imp.ServiceCore.dll_public:_bool___thiscall_CWHRegKey::OpenRegKey_wchar_t_const___bool_]
lea eax, [ebp - 0x218]
push eax
push 0x45231c
lea ecx, [ebp - 0x64c]
call dword [sym.imp.ServiceCore.dll_public:_bool___thiscall_CWHRegKey::WriteString_wchar_t_const___wchar_t_const__]
lea ecx, [esi + 0x2a60]
call dword [sym.imp.PlatformData.dll_public:_void___thiscall_CParameterGlobal::LoadParameter_void_]
mov edx, dword [esi + 0x2bb4]
mov eax, dword [edx + 8]
lea ecx, [esi + 0x2bb4]
call eax
lea ecx, [esi + 0x2be4]
call dword [sym.imp.ShareControl.dll_public:_bool___thiscall_CExpressionManager::LoadExpression_void_]
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea edx, [esi + 0x2a90]
push edx
lea ecx, [esi + 0x5a90]
call dword [sym.imp.SkinControl.dll_public:_void___thiscall_CSkinResourceManager::SetSkinResource_struct_tagSkinRenderInfo_const__]
push 8
call sub.mfc100u.dll_new_1
add esp, 4
mov dword [ebp - 0x650], eax
mov byte [ebp - 4], 2
cmp eax, ebx
je 0x41f8ca
mov ecx, eax
call fcn.00420500
jmp 0x41f8cc
xor eax, eax
push 4
mov byte [ebp - 4], 1
mov dword [esi + 0xb8], eax
call sub.mfc100u.dll_new
cmp eax, ebx
je 0x41f8e9
mov dword [eax], vtable.CCustomOccManager.0
jmp 0x41f8eb
xor eax, eax
push eax
mov dword [esi + 0xbc], eax
call sub.mfc100u.dll_AfxEnableControlContainer
add esp, 4
lea ecx, [esi + 0x5a9c]
call fcn.0042fff0
test al, al
jne 0x41f931
lea ecx, [ebp - 0x64c]
mov byte [ebp - 4], bl
call dword [sym.imp.ServiceCore.dll_public_virtual:_void___thiscall_CWHRegKey::destructor_void_]
lea ecx, [ebp - 0x644]
mov dword [ebp - 4], 0xffffffff
call fcn.004422d4
xor eax, eax
jmp 0x41fab9
lea ecx, [esi + 0x5dd8]
call fcn.0042fff0
test al, al
je 0x41f909
mov eax, dword [esi + 0x6010]
push eax
lea ecx, [esi + 0x2ba8]
call dword [sym.imp.ShareControl.dll_public:_void___thiscall_CUserItemElement::SetUserOrderParser_struct_IUserOrderParser__]
mov eax, dword [esi + 0x5cd4]
push eax
lea ecx, [esi + 0x2ba8]
call dword [sym.imp.ShareControl.dll_public:_void___thiscall_CUserItemElement::SetFaceItemControl_struct_IFaceItemControl__]
xor eax, eax
push 0x80
push 0xe
mov dword [ebp - 0x678], eax
push 0x80
mov dword [ebp - 0x674], eax
mov dword [ebp - 0x670], eax
mov dword [ebp - 0x66c], eax
mov dword [ebp - 0x668], eax
mov dword [ebp - 0x664], eax
mov dword [ebp - 0x660], eax
mov dword [ebp - 0x65c], eax
mov dword [ebp - 0x658], eax
mov dword [ebp - 0x654], eax
mov dword [ebp - 0x678], 8
call sub.mfc100u.dll_AfxFindResourceHandle
push eax
call dword [sym.imp.USER32.dll_LoadIconW]
mov dword [ebp - 0x664], eax
mov eax, dword [sym.imp.USER32.dll_DefWindowProcW]
mov dword [ebp - 0x674], eax
mov dword [ebp - 0x654], str.5176GamePlaza
call sub.mfc100u.dll_AfxGetModuleState
mov ecx, dword [eax + 8]
push 0x7f00
push ebx
mov dword [ebp - 0x668], ecx
call dword [sym.imp.USER32.dll_LoadCursorW]
lea edx, [ebp - 0x678]
push edx
mov dword [ebp - 0x660], eax
call sub.mfc100u.dll_AfxRegisterClass
test eax, eax
jne 0x41fa16
call sub.mfc100u.dll_AfxThrowResourceException
push 0x2680
call sub.mfc100u.dll_new_1
add esp, 4
mov dword [ebp - 0x650], eax
mov byte [ebp - 4], 3
cmp eax, ebx
je 0x41fa3c
mov ecx, eax
call fcn.00424600
mov edi, eax
jmp 0x41fa3e
xor edi, edi
mov eax, dword [edi]
mov edx, dword [eax + 0x168]
push ebx
push ebx
push ebx
push ebx
lea ecx, [ebp - 0x638]
push ecx
push 0x6000000
push 0x452158
push str.5176GamePlaza
mov ecx, edi
mov byte [ebp - 4], 1
mov dword [ebp - 0x638], ebx
mov dword [ebp - 0x634], ebx
mov dword [ebp - 0x630], ebx
mov dword [ebp - 0x62c], ebx
call edx
mov dword [esi + 0x20], edi
mov edi, dword [edi + 0x20]
push edi
lea ecx, [esi + 0x5a0c]
call dword [sym.imp.GameEngine.dll_public:_bool___thiscall_CD3DSound::CreateD3DSound_struct_HWND____]
lea ecx, [ebp - 0x64c]
mov byte [ebp - 4], bl
call dword [sym.imp.ServiceCore.dll_public_virtual:_void___thiscall_CWHRegKey::destructor_void_]
lea ecx, [ebp - 0x644]
mov dword [ebp - 4], 0xffffffff
call fcn.004422d4
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00442c00
mov esp, ebp
pop ebp
ret