Function at 0x4078c0
Capabilities:
Link many functions at runtime
Query environment variable
Read .ini file
Set environment variable

Disassembly:
push 0xffffffffffffffff
push 0x40eebf
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x83c
push ebx
push esi
push edi
push 0x41793c
lea eax, [esp + 0x10]
push 0x41793e
push eax
call fcn.004019e0
add esp, 0xc
push eax
mov ecx, 0x417940
mov dword [esp + 0x854], 0
call sub.MFC42.DLL_CString::operator_1
or ebx, 0xffffffff
lea ecx, [esp + 0xc]
mov dword [esp + 0x850], ebx
call sub.MFC42.DLL_CString::CString
mov dx, word [0x41793e]
cmp dx, 0x3a8
je 0x407ad8
mov ecx, 7
xor eax, eax
lea edi, [esp + 0x29]
mov byte [esp + 0x28], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x28]
push 0x20
push ecx
push edx
stosb byte es:[edi], al
call fcn.0040a450
add esp, 0xc
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::CString_2
mov edi, 0x4179e0
mov ecx, ebx
xor eax, eax
lea edx, [esp + 0x28]
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x850], 1
push edx
jne 0x407a02
lea ecx, [esp + 0x28]
call fcn.00408bea
mov esi, eax
push str.LangPackTcWinWT.
lea eax, [esp + 0x20]
push 0x4179a8
push eax
mov byte [esp + 0x85c], 2
call sub.MFC42.DLL_operator_1
push esi
lea ecx, [esp + 0x14]
mov bl, 3
push eax
push ecx
mov byte [esp + 0x85c], bl
call sub.MFC42.DLL_operator
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x854], 4
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x10]
mov byte [esp + 0x850], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0x850], 2
call sub.MFC42.DLL_CString::CString
mov byte [esp + 0x850], 1
lea ecx, [esp + 0x24]
jmp 0x407aa0
lea ecx, [esp + 0x24]
call fcn.00408bea
mov esi, eax
push 0x4179e0
lea ecx, [esp + 0x14]
mov byte [esp + 0x854], 5
call fcn.00408bea
push str.LangPackTcWinWT.
push eax
lea eax, [esp + 0x24]
mov bl, 6
push eax
mov byte [esp + 0x85c], bl
call sub.MFC42.DLL_operator_1
push esi
lea ecx, [esp + 0x28]
push eax
push ecx
mov byte [esp + 0x85c], 7
call sub.MFC42.DLL_operator
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x854], 8
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x24]
mov byte [esp + 0x850], 7
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0x850], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x850], 5
call sub.MFC42.DLL_CString::CString
mov byte [esp + 0x850], 1
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::CString
mov edx, dword [esp + 0xc]
push edx
call fcn.0040a410
add esp, 4
call fcn.0040a430
mov esi, eax
call sub.MFC42.DLL_AfxGetAppModuleState
lea ecx, [esp + 0xc]
mov dword [eax + 0xc], esi
mov dword [esp + 0x850], 0xffffffff
call sub.MFC42.DLL_CString::CString
or ebx, 0xffffffff
push str.tc.dll
lea eax, [esp + 0x18]
push 0x4179a8
push eax
call sub.MFC42.DLL_operator_1
mov edi, 0x4179e0
mov ecx, ebx
xor eax, eax
mov dword [esp + 0x850], 9
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x407bb6
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::CString_2
mov ecx, 0x1ff
xor eax, eax
lea edi, [esp + 0x49]
mov byte [esp + 0x48], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x48]
push 0x800
push ecx
push str.path
mov byte [esp + 0x85c], 0xa
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
lea edx, [esp + 0x48]
lea eax, [esp + 0xc]
push edx
push 0x4166c4
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 0xc]
push 0x4166c0
call fcn.00408bc6
push 0x4179a8
lea ecx, [esp + 0x10]
call fcn.00408eea
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x48]
push ecx
push 0x4166c4
push 0x800
push edx
call fcn.00407f10
add esp, 0x10
lea eax, [esp + 0x48]
push eax
push str.path
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
lea ecx, [esp + 0xc]
mov byte [esp + 0x850], 9
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x14]
push ecx
call sub.MFC42.DLL_AfxLoadLibrary
test eax, eax
mov dword [0x417c10], eax
je 0x407e98
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.TC_Init_Environ
push eax
call esi
mov edx, dword [0x417c10]
push str.TC_Login
push edx
mov dword [0x417c14], eax
call esi
mov dword [0x417c18], eax
mov eax, dword [0x417c10]
push str.TC_GetLoginRet
push eax
call esi
mov ecx, dword [0x417c10]
push str.TC_CreateAll
push ecx
mov dword [0x417c1c], eax
call esi
mov edx, dword [0x417c10]
push str.TC_ArrangeWnd
push edx
mov dword [0x417c20], eax
call esi
mov dword [0x417c24], eax
mov eax, dword [0x417c10]
push str.TC_PreTransMsg
push eax
call esi
mov ecx, dword [0x417c10]
push str.TC_GetJyStatus
push ecx
mov dword [0x417c28], eax
call esi
mov edx, dword [0x417c10]
push str.TC_Uninit
push edx
mov dword [0x417c2c], eax
call esi
mov dword [0x417c30], eax
mov eax, dword [0x417c10]
push str.TC_BeforeHideWT
push eax
call esi
mov ecx, dword [0x417c10]
push str.TC_GetRightInfo
push ecx
mov dword [0x417c34], eax
call esi
mov edx, dword [0x417c10]
push str.TC_GetClientInfo
push edx
mov dword [0x417c38], eax
call esi
mov dword [0x417c3c], eax
mov eax, dword [0x417c10]
push str.TC_GetVersion
push eax
call esi
mov ecx, dword [0x417c10]
push str.TC_DoLevinGN
push ecx
mov dword [0x417c40], eax
call esi
mov ecx, dword [0x417c14]
mov dword [0x417c44], eax
test ecx, ecx
je 0x407e98
mov ecx, dword [0x417c18]
test ecx, ecx
je 0x407e98
mov ecx, dword [0x417c1c]
test ecx, ecx
je 0x407e98
mov ecx, dword [0x417c20]
test ecx, ecx
je 0x407e98
mov ecx, dword [0x417c28]
test ecx, ecx
je 0x407e98
mov ecx, dword [0x417c2c]
test ecx, ecx
je 0x407e98
mov ecx, dword [0x417c30]
test ecx, ecx
je 0x407e98
mov ecx, dword [0x417c34]
test ecx, ecx
je 0x407e98
mov ecx, dword [0x417c3c]
test ecx, ecx
je 0x407e98
mov ecx, dword [0x417c40]
test ecx, ecx
je 0x407e98
mov ecx, dword [0x417c38]
test ecx, ecx
je 0x407e98
test eax, eax
je 0x407e98
push str.Connect.cfg
lea edx, [esp + 0x24]
push 0x4179a8
push edx
call sub.MFC42.DLL_operator_1
mov eax, dword [eax]
push eax
push 1
push str.NewJy
push str.Version
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
lea ecx, [esp + 0x20]
mov dword [0x4179b4], eax
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov dword [0x4179b8], 0
call sub.MFC42.DLL_CString::CString_2
mov eax, dword [0x417940]
mov ecx, dword [0x4179a8]
push eax
push ecx
lea edx, [esp + 0x20]
mov bl, 0xb
push str._s_s
push edx
mov byte [esp + 0x860], bl
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0x28]
add esp, 0x10
push eax
call sub.MFC42.DLL_AfxLoadLibrary
test eax, eax
mov dword [0x4179b8], eax
jne 0x407e56
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [0x417940]
mov byte [esp + 0x850], 0xc
push ecx
push 0x2714
call fcn.0040a5d0
add esp, 4
lea edx, [esp + 0x14]
push eax
push edx
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0x1c]
push 0x30
push eax
push 0
call fcn.004015b0
add esp, 0x18
lea ecx, [esp + 0x10]
mov byte [esp + 0x850], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x850], 9
call sub.MFC42.DLL_CString::CString
mov dword [esp + 0x850], 0xffffffff
jmp 0x407e9f
lea ecx, [esp + 0x18]
mov byte [esp + 0x850], 9
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov dword [esp + 0x850], 0xffffffff
call sub.MFC42.DLL_CString::CString
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x83c]
mov dword fs:[0], ecx
add esp, 0x848
ret
mov dword [esp + 0x850], ebx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x848]
pop edi
pop esi
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x848
ret