Function at 0x401660
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4202b3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x850
push ebx
push ebp
push esi
push edi
mov ebp, ecx
call sub.MFC42u.DLL_AfxGetModuleState
mov esi, dword [eax + 0xc]
lea ecx, [esp + 0x14]
call sub.MFC42u.DLL_CString::CString_3
mov ebx, 1
push str.Software360Safe
lea ecx, [esp + 0x2c]
mov dword [esp + 0x86c], 0
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], 0x80000001
call sub.MFC42u.DLL_CString::CString_2
push 0x429104
lea ecx, [esp + 0x30]
mov byte [esp + 0x86c], bl
call sub.MFC42u.DLL_CString::CString_2
mov dword [esp + 0x1c], ebx
mov dword [0x42b89c], ebx
mov dword [0x42b890], ebx
push 0x42b98c
lea ecx, [esp + 0x14]
mov dword [esp + 0x86c], 2
call sub.MFC42u.DLL_CString::CString_2
lea eax, [esp + 0x34]
push 0
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x870], 3
call fcn.004023a0
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x86c], 4
call sub.MFC42u.DLL_CString::operator
lea ecx, [esp + 0x34]
mov byte [esp + 0x868], 3
call sub.MFC42u.DLL_CString::CString
mov ecx, 0x200
xor eax, eax
lea edi, [esp + 0x60]
push 0x400
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x64]
push ecx
push eax
call fcn.00401fa0
mov eax, dword [esp + 0x28]
add esp, 0xc
xor esi, esi
test eax, eax
jle 0x40177d
mov edi, dword [0x4224f0]
lea edx, [esp + 0x60]
push edx
call edi
mov eax, dword [esp + 0x1c]
inc esi
cmp esi, eax
jl 0x40176d
mov esi, dword [sym.imp.MSVCRT.dll_wcsncat]
push 0x400
lea eax, [esp + 0x64]
push 0x429100
push eax
call esi
add esp, 0xc
lea ecx, [esp + 0x30]
push 0
push ecx
lea ecx, [esp + 0x1c]
call fcn.00402040
mov eax, dword [eax]
push 0x400
lea edx, [esp + 0x64]
push eax
push edx
call esi
add esp, 0xc
lea ecx, [esp + 0x30]
call sub.MFC42u.DLL_CString::CString
push 0x400
lea eax, [esp + 0x64]
push str.miniui.xml
push eax
call esi
add esp, 0xc
lea ecx, [esp + 0x14]
call fcn.00402500
mov esi, dword [esp + 0x10]
mov edi, dword [esp + 0x18]
call fcn.00401c60
test eax, eax
je 0x401800
mov ecx, dword [eax]
lea edx, [esp + 0x60]
push esi
push edx
push edi
push eax
call dword [ecx]
mov esi, eax
jmp 0x401802
xor esi, esi
lea ecx, [esp + 0x10]
mov byte [esp + 0x868], 2
call sub.MFC42u.DLL_CString::CString
test esi, esi
jne 0x401857
lea ecx, [esp + 0x2c]
mov dword [esp + 0x868], 6
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x28]
mov byte [esp + 0x868], 5
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x14]
mov dword [esp + 0x868], 0xffffffff
call sub.MFC42u.DLL_CString::CString
xor eax, eax
jmp 0x401901
mov ecx, ebp
call fcn.00401920
call sub.MFC42u.DLL_AfxGetModuleState
mov edx, dword [eax + 0xc]
mov eax, 0x42908c
test eax, eax
je 0x4018ad
mov ecx, str.32770
test ecx, ecx
je 0x4018ad
mov ecx, 0xa
xor eax, eax
lea edi, [esp + 0x38]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x38]
push eax
push str.32770
push edx
call dword [0x422550]
test eax, eax
je 0x4018ad
lea ecx, [esp + 0x38]
mov dword [esp + 0x5c], 0x42908c
push ecx
call dword [0x42254c]
call fcn.00401c60
test eax, eax
je 0x4018c6
mov edx, dword [eax]
push 0x42908c
push str.32770
push eax
call dword [edx + 0x24]
lea ecx, [esp + 0x2c]
mov dword [esp + 0x868], 8
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x28]
mov byte [esp + 0x868], 7
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x14]
mov dword [esp + 0x868], 0xffffffff
call sub.MFC42u.DLL_CString::CString
mov eax, ebx
mov ecx, dword [esp + 0x860]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x85c
ret