Function at 0x401710
Capabilities:
Create process on windows
Hide graphical window
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4152d1
mov eax, dword fs:[0]
push eax
sub esp, 0x330
mov eax, dword [0x41c024]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov ebx, ecx
lea esi, [ebp - 0x314]
mov dword [ebp - 0x320], ebx
mov dword [ebp - 0x31c], eax
call fcn.00401d40
mov dword [ebp - 4], 0
cmp byte [ebx + 0x35], 0
je 0x401772
push 0x493e0
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [ebx + 0x7c], 0
je 0x401c4d
push ebx
lea eax, [ebp - 0x2cc]
call fcn.00401c90
mov ecx, dword [eax]
lea eax, [ebp - 0x118]
mov dword [ebp - 0x11c], eax
mov byte [ebp - 0x118], 0
mov edi, ecx
test ecx, ecx
jne 0x4017a8
mov edi, 0x418416
mov ecx, edi
lea esi, [ecx + 1]
lea ecx, [ecx]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x4017b0
sub ecx, esi
mov esi, ecx
cmp esi, 0x3f
jl 0x4017de
lea ecx, [esi + 1]
push ecx
push 0
mov dword [ebp - 0x11c], 0
call fcn.004096a1
add esp, 8
mov dword [ebp - 0x11c], eax
push esi
push edi
push eax
call fcn.004093b7
mov edx, dword [ebp - 0x11c]
add esp, 0xc
mov byte [esi + edx], 0
mov eax, dword [ebp - 0x2cc]
lea ecx, [ebp - 0x2c8]
cmp eax, ecx
je 0x40180c
push eax
call fcn.004093d1
add esp, 4
lea esi, [ebp - 0xd4]
call fcn.00401600
push 0x418384
mov eax, esi
mov byte [ebp - 4], 2
call fcn.00402db0
mov edx, dword [ebp - 0x11c]
push edx
mov eax, esi
call fcn.00402db0
lea esi, [ebx + 0x80]
lea eax, [ebp - 0xd4]
call fcn.00402f50
lea eax, [ebp - 0xd4]
push eax
lea esi, [ebp - 0x2cc]
call fcn.00402d20
mov esi, dword [ebx + 0x7c]
lea eax, [ebp - 0x2cc]
call fcn.00402f50
mov ecx, dword [esi + 0x48]
mov edx, dword [esi + 0x44]
lea eax, [esi + 0x44]
push ecx
push edx
lea ecx, [ebp - 0x318]
push ecx
push eax
call fcn.00404840
call fcn.00401de0
push 0xbb8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 0x2cc]
lea edx, [ebp - 0x2c8]
cmp eax, edx
je 0x4018a7
push eax
call fcn.004093d1
add esp, 4
mov eax, dword [ebx + 0x7c]
push eax
call fcn.00403770
mov ecx, dword [ebx + 0x7c]
mov eax, dword [ecx]
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4018b8
sub eax, esi
je 0x4018ca
push 1
call fcn.00403bf0
mov edx, dword [ebp - 0xd4]
push edx
lea ecx, [ebp - 0x280]
xor ebx, ebx
push str._sDatauser2.ini
lea edi, [ebp - 0x284]
mov dword [ebp - 0x284], ecx
mov byte [ebp - 0x280], bl
call fcn.00403380
lea eax, [ebp - 0x1a8]
push 1
mov ecx, eax
push 0x4183b0
push ecx
mov dword [ebp - 0x1ac], eax
mov byte [ebp - 0x1a8], bl
call fcn.004093b7
mov edx, dword [ebp - 0x1ac]
mov byte [edx + 1], bl
mov eax, dword [ebp - 0x11c]
add esp, 0x14
push eax
lea eax, [ebp - 0x1ac]
call fcn.00402db0
mov ecx, dword [ebp - 0x284]
mov edx, dword [ebp - 0x1ac]
push ecx
push edx
push 0x4183b4
push 0x4183b8
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov esi, dword [ebp - 0x320]
mov ecx, dword [esi + 0x7c]
call fcn.00404550
cmp byte [esi + 0x36], bl
je 0x401a6c
mov edi, dword [ebp - 0x31c]
push ebx
push 0x4023f0
push ebx
push 0x6d
push edi
call dword [sym.imp.USER32.dll_CreateDialogParamA]
mov ebx, eax
mov dword [esi + 0x2c], eax
call fcn.00401ce0
mov edi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0
call edi
push 1
mov ebx, eax
call edi
push 0
push str.shell_traywnd
mov edi, eax
call dword [sym.imp.USER32.dll_FindWindowA]
lea ecx, [ebp - 0x8c]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, dword [ebp - 0x88]
mov eax, dword [ebp - 0x80]
sub eax, ecx
test ecx, ecx
jg 0x4019c7
xor eax, eax
mov edx, dword [esi + 0x2c]
push 1
push 0x96
push 0xfa
sub edi, eax
sub edi, 0x96
push edi
add ebx, 0xfffffef2
push ebx
push edx
call dword [sym.imp.USER32.dll_MoveWindow]
mov eax, dword [esi + 0x2c]
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [esi + 0x2c]
push 0x43
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push ecx
call dword [sym.imp.USER32.dll_SetWindowPos]
mov edx, dword [esi + 0x2c]
push 2
push 0xfa
push 0
push edx
call dword [sym.imp.USER32.dll_SetLayeredWindowAttributes]
mov edi, dword [sym.imp.USER32.dll_GetMessageA]
push 0
push 0
push 0
lea eax, [ebp - 0x33c]
push eax
call edi
test eax, eax
je 0x401a6a
mov ebx, dword [sym.imp.USER32.dll_TranslateMessage]
lea ecx, [ebp - 0x33c]
push ecx
call ebx
lea edx, [ebp - 0x33c]
push edx
call dword [sym.imp.USER32.dll_DispatchMessageA]
push 0
push 0
push 0
lea eax, [ebp - 0x33c]
push eax
call edi
test eax, eax
jne 0x401a41
xor ebx, ebx
movzx eax, byte [esi + 0x34]
mov ecx, dword [esi + 0x7c]
push eax
push eax
call fcn.00404150
mov edx, dword [esi + 4]
mov eax, dword [ebp - 0xd4]
push edx
push eax
lea ecx, [ebp - 0x238]
push str._s_s__tuopan
lea edi, [ebp - 0x23c]
mov dword [ebp - 0x23c], ecx
mov byte [ebp - 0x238], bl
call fcn.00403380
mov ecx, dword [ebp - 0x23c]
add esp, 0xc
push 5
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
mov ecx, dword [ebp - 0xd4]
lea eax, [ebp - 0x160]
mov dword [ebp - 0x164], eax
mov byte [ebp - 0x160], bl
mov edi, ecx
cmp ecx, ebx
jne 0x401adc
mov edi, 0x418416
mov ecx, edi
lea esi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
cmp dl, bl
jne 0x401ae1
sub ecx, esi
mov esi, ecx
cmp esi, 0x3f
jl 0x401b0a
lea edx, [esi + 1]
push edx
push ebx
mov dword [ebp - 0x164], ebx
call fcn.004096a1
add esp, 8
mov dword [ebp - 0x164], eax
push esi
push edi
push eax
call fcn.004093b7
mov eax, dword [ebp - 0x164]
add esp, 0xc
mov byte [esi + eax], bl
push str.SysConfig.ini
lea eax, [ebp - 0x164]
call fcn.00402db0
push 0x64
lea ecx, [ebp - 0x7c]
push ebx
push ecx
call fcn.0040d570
mov edx, dword [ebp - 0x164]
add esp, 0xc
push edx
push 0x64
lea eax, [ebp - 0x7c]
push eax
push str.BoxNews.exe
push str.RunSetup
push str.SysConfig
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov eax, dword [ebp - 0xd4]
lea edx, [ebp - 0x7c]
push edx
push eax
lea ecx, [ebp - 0x1f0]
push str._s_s
lea edi, [ebp - 0x1f4]
mov dword [ebp - 0x1f4], ecx
mov byte [ebp - 0x1f0], bl
call fcn.00403380
mov ecx, dword [ebp - 0x1f4]
add esp, 0xc
push 5
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
mov eax, dword [ebp - 0x1f4]
lea edx, [ebp - 0x1f0]
cmp eax, edx
je 0x401bb7
push eax
call fcn.004093d1
add esp, 4
mov eax, dword [ebp - 0x164]
lea ecx, [ebp - 0x160]
cmp eax, ecx
je 0x401bd0
push eax
call fcn.004093d1
add esp, 4
mov eax, dword [ebp - 0x23c]
lea edx, [ebp - 0x238]
cmp eax, edx
je 0x401be9
push eax
call fcn.004093d1
add esp, 4
mov eax, dword [ebp - 0x1ac]
lea ecx, [ebp - 0x1a8]
cmp eax, ecx
je 0x401c02
push eax
call fcn.004093d1
add esp, 4
mov eax, dword [ebp - 0x284]
lea edx, [ebp - 0x280]
cmp eax, edx
je 0x401c1b
push eax
call fcn.004093d1
add esp, 4
mov eax, dword [ebp - 0xd4]
lea ecx, [ebp - 0xd0]
cmp eax, ecx
je 0x401c34
push eax
call fcn.004093d1
add esp, 4
mov eax, dword [ebp - 0x11c]
lea edx, [ebp - 0x118]
cmp eax, edx
je 0x401c4d
push eax
call fcn.004093d1
add esp, 4
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
mov eax, dword [ebp - 0x314]
lea ecx, [ebp - 0x310]
cmp eax, ecx
je 0x401c6e
push eax
call fcn.004093d1
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00408bbe
mov esp, ebp
pop ebp
ret 4