Function at 0x4782a0
Capabilities:
Check if file exists
Query environment variable
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x58c203
mov eax, dword fs:[0]
push eax
sub esp, 0xc80
mov eax, dword [0x5ea2c4]
xor eax, esp
mov dword [esp + 0xc78], eax
push ebx
push esi
push edi
mov eax, dword [0x5ea2c4]
xor eax, esp
push eax
lea eax, [esp + 0xc90]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x18], 0
call fcn.00478b00
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x266]
push ecx
mov word [esp + 0x268], ax
call fcn.0052e300
add esp, 0xc
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x87e]
push eax
mov word [esp + 0x880], dx
call fcn.0052e300
add esp, 0xc
push 0x104
lea ecx, [esp + 0x260]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea edi, [esp + 0x874]
lea esi, [esp + 0x25c]
call fcn.00491e00
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x478361
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x878]
push edx
lea esi, [ebx + 0x144]
call fcn.00406150
lea eax, [esp + 0x25c]
push 0x5c
push eax
call fcn.00527ab0
sub esp, 0x14
mov dword [esp + 0x30], esp
mov edi, esp
sub esp, 0x1c
mov esi, esp
xor ecx, ecx
mov dword [esp + 0x4c], esp
mov word [eax + 2], cx
push 4
xor edx, edx
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], ecx
push str.soft
mov word [esi + 4], dx
call fcn.00406150
mov dword [esp + 0xcd0], 0
mov eax, dword [0x5ef5f4]
test eax, eax
jne 0x4783e0
call fcn.00404b70
mov ecx, dword [0x5ef5f4]
push ecx
mov dword [esp + 0xcd4], 0xffffffff
call fcn.0047de90
call fcn.0047e080
mov dword [ebx + 0x160], eax
cmp eax, 0xffffffff
jne 0x478414
push ebx
lea esi, [esp + 0x260]
call fcn.0047c310
mov edx, dword [ebx + 0x160]
push edx
mov ecx, ebx
call fcn.0047b300
lea eax, [esp + 0x25c]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x478430
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x260]
lea esi, [ebx + 0xf0]
push eax
call fcn.00406150
push 0xffffffffffffffff
push 0
lea ecx, [ebx + 0x19c]
push ecx
call fcn.00403f60
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x5e]
push eax
mov word [esp + 0x60], dx
call fcn.0052e300
add esp, 0xc
cmp dword [esi + 0x18], 8
jb 0x478488
mov eax, dword [esi + 4]
jmp 0x47848b
lea eax, [esi + 4]
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push eax
push 0x104
lea ecx, [esp + 0x5c]
push ecx
push 0x59b2fc
push 0x5aaf54
push str.AppInfo
call edi
mov edx, dword [0x5ef5f4]
test edx, edx
jne 0x4784bc
call fcn.00404b70
lea eax, [esp + 0x54]
push eax
push str.CfgRootPath
call fcn.0047b0e0
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x476]
push edx
mov word [esp + 0x478], cx
call fcn.0052e300
add esp, 0x14
cmp dword [esi + 0x18], 8
jb 0x4784f6
mov esi, dword [esi + 4]
jmp 0x4784f9
add esi, 4
push esi
push 0x104
lea eax, [esp + 0x46c]
push eax
push 0x5aaf9c
push 0x5aafa4
push str.AppInfo
call edi
lea eax, [esp + 0x464]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x478522
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x468]
lea esi, [ebx + 0x10]
push ecx
call fcn.00406150
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x676]
push eax
mov word [esp + 0x678], dx
call fcn.0052e300
add esp, 0xc
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0xa86]
push edx
mov word [esp + 0xa88], cx
call fcn.0052e300
add esp, 0xc
cmp dword [ebx + 0x108], 8
jb 0x478593
mov eax, dword [ebx + 0xf4]
jmp 0x478599
lea eax, [ebx + 0xf4]
push eax
push 0x104
lea eax, [esp + 0x674]
push eax
push 0x5aafb8
push 0x5aafc0
push str.AppUpdate
call edi
cmp dword [ebx + 0x108], 8
jb 0x4785c9
mov eax, dword [ebx + 0xf4]
jmp 0x4785cf
lea eax, [ebx + 0xf4]
push eax
push 0x104
lea ecx, [esp + 0xa84]
push ecx
push 0x5aafb8
push str.MinVer
push str.AppUpdate
call edi
lea eax, [esp + 0x66c]
lea edx, [eax + 2]
jmp 0x478600
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x478600
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x670]
lea esi, [ebx + 0x48]
push edx
call fcn.00406150
push 1
push 0x5aafec
mov eax, esi
call fcn.00404070
lea eax, [esp + 0xa7c]
lea edx, [eax + 2]
jmp 0x478640
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x478640
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0xa80]
push eax
lea eax, [ebx + 0x48]
call fcn.00404070
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea ecx, [esp + 0x54]
push ecx
call esi
lea edx, [esp + 0x54]
test eax, eax
je 0x4787c9
push 0x5c
push edx
call fcn.00527ab0
add esp, 8
lea edx, [esp + 0x54]
xor ecx, ecx
push edx
mov word [eax + 2], cx
call esi
test eax, eax
je 0x478750
lea eax, [esp + 0x54]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4786a0
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x58]
lea esi, [ebx + 0x64]
push eax
call fcn.00406150
push 0x15
push 0x5aaff0
mov eax, esi
call fcn.00404070
lea eax, [esp + 0x54]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4786d2
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x58]
lea esi, [ebx + 0x80]
push ecx
call fcn.00406150
push 0x11
push str.ConfigConfig.ini
mov eax, esi
call fcn.00404070
lea eax, [esp + 0x54]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x478707
sub eax, edx
sar eax, 1
cmp word [esp + eax*2 + 0x52], 0x5c
jne 0x47873b
lea eax, [esp + 0x54]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x478725
sub eax, edx
sar eax, 1
xor edx, edx
mov word [esp + eax*2 + 0x52], dx
lea eax, [esp + 0x54]
push 0x5c
push eax
call fcn.00527ab0
add esp, 8
xor ecx, ecx
mov word [eax + 2], cx
lea eax, [esp + 0x54]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x478757
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x58]
lea edi, [ebx + 0xd4]
push ecx
mov esi, edi
call fcn.00406150
push 9
push str.MiNiNews_
mov eax, edi
call fcn.00404070
lea eax, [esp + 0x54]
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x478790
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x58]
lea esi, [ebx + 0x10c]
push edx
call fcn.00406150
push 0x1a
push str.BubblesPopCheckToTips.ini
mov eax, esi
call fcn.00404070
cmp dword [edi + 0x18], 8
jb 0x478819
mov eax, dword [edi + 4]
jmp 0x47881c
push 0x104
push edx
push str.USERPROFILE
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea edi, [esp + 0x54]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4787e1
mov ecx, 9
mov esi, str.AppDataLocalLow_
rep movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x54]
push eax
movsw word es:[edi], word [esi]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x478750
mov eax, dword [ebx + 0x160]
jmp 0x478ad8
lea eax, [edi + 4]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x47883a
cmp dword [edi + 0x18], 8
jb 0x478832
mov eax, dword [edi + 4]
jmp 0x478835
lea eax, [edi + 4]
call fcn.00490560
mov esi, dword [esp + 0x10]
push 0xffffffffffffffff
push 0
lea ebx, [esi + 0x9c]
push edi
mov eax, ebx
call fcn.00405d70
push 0xa
push str.Config.ini
mov eax, ebx
call fcn.00404070
push 0xffffffffffffffff
push 0
add esi, 0xb8
push edi
mov eax, esi
call fcn.00405d70
push 8
push str.mininews
mov eax, esi
call fcn.00404070
mov eax, dword [esp + 0x10]
cmp dword [eax + 0x1d0], 8
mov esi, eax
jb 0x478895
mov edi, dword [esi + 0x1bc]
jmp 0x47889d
mov edi, eax
add edi, 0x1bc
mov ecx, dword [0x5ef5f4]
test ecx, ecx
jne 0x4788ac
call fcn.00404b70
push edi
push 0x5ab0f8
call fcn.0047b0e0
add esp, 8
cmp dword [esi + 0x108], 8
jb 0x4788cb
mov edi, dword [esi + 0xf4]
jmp 0x4788d1
lea edi, [esi + 0xf4]
mov edx, dword [0x5ef5f4]
test edx, edx
jne 0x4788e0
call fcn.00404b70
push edi
push 0x5ab10c
call fcn.0047b0e0
add esp, 8
cmp dword [esi + 0x7c], 8
jb 0x4788f9
mov edi, dword [esi + 0x68]
jmp 0x4788fc
lea edi, [esi + 0x68]
mov eax, dword [0x5ef5f4]
test eax, eax
jne 0x47890a
call fcn.00404b70
push edi
push str.UseVestige
call fcn.0047b0e0
mov edi, 8
add esp, 8
cmp dword [ebx + 0x18], edi
jb 0x478927
mov ebx, dword [ebx + 4]
jmp 0x47892a
add ebx, 4
mov ecx, dword [0x5ef5f4]
test ecx, ecx
jne 0x478939
call fcn.00404b70
push ebx
push str.Config
call fcn.0047b0e0
add esp, 8
cmp dword [esi + 0x28], edi
jb 0x478951
mov ebx, dword [esi + 0x14]
jmp 0x478954
lea ebx, [esi + 0x14]
mov edx, dword [0x5ef5f4]
test edx, edx
jne 0x478963
call fcn.00404b70
push ebx
push 0x5ab16c
call fcn.0047b0e0
lea eax, [esi + 0x48]
add esp, 8
cmp dword [eax + 0x18], edi
jb 0x47897e
mov esi, dword [eax + 4]
jmp 0x478981
lea esi, [eax + 4]
mov eax, dword [0x5ef5f4]
test eax, eax
jne 0x47898f
call fcn.00404b70
push esi
push str.Hr_g
call fcn.0047b0e0
mov ecx, dword [0x5ef5f4]
add esp, 8
test ecx, ecx
jne 0x4789ac
call fcn.00404b70
mov ecx, dword [0x5ef5f4]
push str.test
push str.Setting
lea edx, [esp + 0x40]
call fcn.0047c7f0
lea edx, [esp + 0x38]
push edx
mov ecx, str.test
mov dword [esp + 0xc9c], 1
call fcn.00404b00
test eax, eax
je 0x478a62
sub esp, 0x1c
mov esi, esp
mov dword [esp + 0x30], esp
push 4
xor eax, eax
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], 0
push str.test
mov word [esi + 4], ax
call fcn.00406150
mov byte [esp + 0xcb4], 2
mov ecx, dword [0x5ef5f4]
test ecx, ecx
jne 0x478a27
call fcn.00404b70
mov edx, dword [0x5ef5f4]
push edx
lea edi, [esp + 0x3c]
mov byte [esp + 0xcb8], 1
call fcn.0047de90
mov byte [esp + 0xc98], 3
push eax
mov ecx, str.test
mov dword [esp + 0x1c], 1
call fcn.00404b00
test eax, eax
je 0x478a62
xor bl, bl
jmp 0x478a64
mov bl, 1
mov dword [esp + 0xc98], 1
test byte [esp + 0x18], 1
je 0x478a8a
cmp dword [esp + 0x34], 8
jb 0x478a8a
mov eax, dword [esp + 0x20]
push eax
call fcn.005273b8
add esp, 4
test bl, bl
je 0x478ab8
mov edx, dword [0x5ef5f4]
mov ecx, dword [esp + 0x10]
mov dword [ecx + 0x3f0], 2
test edx, edx
jne 0x478aab
call fcn.00404b70
push 0x5ab19c
call fcn.0047b0e0
add esp, 4
cmp dword [esp + 0x50], 8
mov eax, dword [esp + 0x10]
mov esi, dword [eax + 0x160]
jb 0x478ad6
mov ecx, dword [esp + 0x3c]
push ecx
call fcn.005273b8
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0xc90]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xc78]
xor ecx, esp
call fcn.005273c3
mov esp, ebp
pop ebp
ret 4