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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4152a1
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.00401d30
mov dword [ebp - 4], 0
cmp byte [ebx + 0x35], 0
je 0x401762
push 0x493e0
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [ebx + 0x7c], 0
je 0x401c3d
push ebx
lea eax, [ebp - 0x2cc]
call fcn.00401c80
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 0x401798
mov edi, 0x41840e
mov ecx, edi
lea esi, [ecx + 1]
lea ecx, [ecx]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x4017a0
sub ecx, esi
mov esi, ecx
cmp esi, 0x3f
jl 0x4017ce
lea ecx, [esi + 1]
push ecx
push 0
mov dword [ebp - 0x11c], 0
call fcn.00409671
add esp, 8
mov dword [ebp - 0x11c], eax
push esi
push edi
push eax
call fcn.00409387
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 0x4017fc
push eax
call fcn.004093a1
add esp, 4
lea esi, [ebp - 0xd4]
call fcn.00401600
push 0x418384
mov eax, esi
mov byte [ebp - 4], 2
call fcn.00402d80
mov edx, dword [ebp - 0x11c]
push edx
mov eax, esi
call fcn.00402d80
lea esi, [ebx + 0x80]
lea eax, [ebp - 0xd4]
call fcn.00402f20
lea eax, [ebp - 0xd4]
push eax
lea esi, [ebp - 0x2cc]
call fcn.00402cf0
mov esi, dword [ebx + 0x7c]
lea eax, [ebp - 0x2cc]
call fcn.00402f20
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.00404810
call fcn.00401dd0
push 0xbb8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 0x2cc]
lea edx, [ebp - 0x2c8]
cmp eax, edx
je 0x401897
push eax
call fcn.004093a1
add esp, 4
mov eax, dword [ebx + 0x7c]
push eax
call fcn.00403740
mov ecx, dword [ebx + 0x7c]
mov eax, dword [ecx]
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4018a8
sub eax, esi
je 0x4018ba
push 1
call fcn.00403bc0
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.00403350
lea eax, [ebp - 0x1a8]
push 1
mov ecx, eax
push 0x4183a8
push ecx
mov dword [ebp - 0x1ac], eax
mov byte [ebp - 0x1a8], bl
call fcn.00409387
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.00402d80
mov ecx, dword [ebp - 0x284]
mov edx, dword [ebp - 0x1ac]
push ecx
push edx
push 0x4183ac
push 0x4183b0
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov esi, dword [ebp - 0x320]
mov ecx, dword [esi + 0x7c]
call fcn.00404520
cmp byte [esi + 0x36], bl
je 0x401a5c
mov edi, dword [ebp - 0x31c]
push ebx
push 0x4023c0
push ebx
push 0x6d
push edi
call dword [sym.imp.USER32.dll_CreateDialogParamA]
mov ebx, eax
mov dword [esi + 0x2c], eax
call fcn.00401cd0
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 0x4019b7
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 0x401a5a
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 0x401a31
xor ebx, ebx
movzx eax, byte [esi + 0x34]
mov ecx, dword [esi + 0x7c]
push eax
push eax
call fcn.00404120
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.00403350
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 0x401acc
mov edi, 0x41840e
mov ecx, edi
lea esi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
cmp dl, bl
jne 0x401ad1
sub ecx, esi
mov esi, ecx
cmp esi, 0x3f
jl 0x401afa
lea edx, [esi + 1]
push edx
push ebx
mov dword [ebp - 0x164], ebx
call fcn.00409671
add esp, 8
mov dword [ebp - 0x164], eax
push esi
push edi
push eax
call fcn.00409387
mov eax, dword [ebp - 0x164]
add esp, 0xc
mov byte [esi + eax], bl
push str.SysConfig.ini
lea eax, [ebp - 0x164]
call fcn.00402d80
push 0x64
lea ecx, [ebp - 0x7c]
push ebx
push ecx
call fcn.0040d540
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.00403350
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 0x401ba7
push eax
call fcn.004093a1
add esp, 4
mov eax, dword [ebp - 0x164]
lea ecx, [ebp - 0x160]
cmp eax, ecx
je 0x401bc0
push eax
call fcn.004093a1
add esp, 4
mov eax, dword [ebp - 0x23c]
lea edx, [ebp - 0x238]
cmp eax, edx
je 0x401bd9
push eax
call fcn.004093a1
add esp, 4
mov eax, dword [ebp - 0x1ac]
lea ecx, [ebp - 0x1a8]
cmp eax, ecx
je 0x401bf2
push eax
call fcn.004093a1
add esp, 4
mov eax, dword [ebp - 0x284]
lea edx, [ebp - 0x280]
cmp eax, edx
je 0x401c0b
push eax
call fcn.004093a1
add esp, 4
mov eax, dword [ebp - 0xd4]
lea ecx, [ebp - 0xd0]
cmp eax, ecx
je 0x401c24
push eax
call fcn.004093a1
add esp, 4
mov eax, dword [ebp - 0x11c]
lea edx, [ebp - 0x118]
cmp eax, edx
je 0x401c3d
push eax
call fcn.004093a1
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 0x401c5e
push eax
call fcn.004093a1
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.00408b8e
mov esp, ebp
pop ebp
ret 4