Function at 0x409870
Capabilities:
Check if file exists
Get file attributes
Read .ini file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x420f47
push eax
mov eax, 0x11ac
mov dword fs:[0], esp
call fcn.00417fe0
push ebx
push esi
push edi
push str..module_config.ini
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x409cfb
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
xor ebx, ebx
push str..module_config.ini
push ebx
push str.Checked
push str.desktop_shortcut
call esi
push str..module_config.ini
push ebx
push str.Checked
push str.startup_shortcut
mov dword [0x4270d4], eax
call esi
push str..module_config.ini
push ebx
push str.Checked
push str.quick_launch_shortcut
mov dword [0x4270d8], eax
call esi
push str..module_config.ini
push ebx
push str.Checked
push str.setdefaultbrowser
mov dword [0x4270dc], eax
call esi
push str..module_config.ini
push ebx
push str.Checked
push str.MxUEIP
mov dword [0x4270e0], eax
call esi
push str..module_config.ini
push ebx
push str.Checked
push str.MxKWS
mov dword [0x4270e4], eax
call esi
push str..module_config.ini
push ebx
push str.Display
push str.MxKWS
mov dword [0x4270e8], eax
call esi
push str..module_config.ini
push ebx
push str.RunMaxthon
push str.finished_run
mov dword [0x4270ec], eax
call esi
push str..module_config.ini
push ebx
push str.ShowChangeLog
push str.finished_run
mov dword [0x4270f0], eax
call esi
mov dword [0x42c51c], eax
mov ecx, 0x31
xor eax, eax
lea edi, [esp + 0xaa]
mov word [esp + 0xa8], bx
push str..module_config.ini
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0xac]
push 0x64
push eax
push 0x42c54c
push 0x427774
push str.Config
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea ecx, [esp + 0xa8]
push ecx
call fcn.00417a8e
add esp, 4
test eax, eax
je 0x409a19
lea edx, [esp + 0xa8]
push edx
call fcn.00417a8e
add esp, 4
mov edi, eax
mov ecx, 0x42c4c0
push 1
push edi
call fcn.0040ce00
test al, al
je 0x409a19
mov eax, dword [0x42c4c4]
lea ecx, [esp + 0xa8]
push edi
push ecx
push eax
call fcn.00401be0
mov edx, dword [0x42c4c4]
mov dword [0x42c4c8], edi
add esp, 0xc
mov word [edx + edi*2], bx
push str..module_config.ini
push ebx
push 0x428390
push str.Config
call esi
push str..module_config.ini
push ebx
push 0x42838c
push str.Config
mov dword [0x4270f4], eax
call esi
push str..module_config.ini
push ebx
push str.Items
push str.SpecialShortcuts
mov dword [0x42c424], eax
call esi
xor edx, edx
cmp eax, ebx
mov dword [esp + 0x40], eax
jle 0x409cfb
push ebp
mov ecx, 0x18
xor eax, eax
lea edi, [esp + 0x4a]
mov word [esp + 0x48], bx
rep stosd dword es:[edi], eax
lea ebp, [edx + 1]
stosw word es:[edi], ax
push ebp
lea eax, [esp + 0x4c]
push str.SpecialShortcuts__d
push eax
call fcn.00417eed
mov cl, byte [esp + 0x1f]
add esp, 0xc
mov byte [esp + 0x14], cl
lea ecx, [esp + 0x14]
push ebx
call fcn.0040cf30
mov dl, byte [esp + 0x13]
push ebx
lea ecx, [esp + 0x28]
mov dword [esp + 0x11c8], ebx
mov byte [esp + 0x28], dl
call fcn.0040cf30
mov al, byte [esp + 0x13]
push ebx
lea ecx, [esp + 0x38]
mov byte [esp + 0x11c8], 1
mov byte [esp + 0x38], al
call fcn.0040cf30
mov ecx, 0x411
xor eax, eax
lea edi, [esp + 0x176]
mov word [esp + 0x174], bx
rep stosd dword es:[edi], eax
push str..module_config.ini
lea ecx, [esp + 0x178]
push 0x823
push ecx
push 0x42c54c
lea edx, [esp + 0x58]
push 0x42832c
push edx
mov dword [esp + 0x11dc], 2
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [esp + 0x174]
push eax
call fcn.00417a8e
add esp, 4
mov esi, eax
lea ecx, [esp + 0x14]
push 1
push esi
call fcn.0040ce00
test al, al
je 0x409b65
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x174]
push esi
push ecx
push edx
call fcn.00401be0
mov eax, dword [esp + 0x24]
mov dword [esp + 0x28], esi
add esp, 0xc
mov word [eax + esi*2], bx
mov ecx, 0x19
xor eax, eax
lea edi, [esp + 0x174]
push str..module_config.ini
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x178]
push 0x823
push ecx
push 0x42c54c
lea edx, [esp + 0x58]
push str.Name
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [esp + 0x174]
push eax
call fcn.00417a8e
add esp, 4
mov esi, eax
lea ecx, [esp + 0x24]
push 1
push esi
call fcn.0040ce00
test al, al
je 0x409bea
mov eax, dword [esp + 0x28]
cmp esi, ebx
lea ecx, [esp + 0x174]
jbe 0x409bde
mov edx, esi
mov di, word [ecx]
add ecx, 2
mov word [eax], di
add eax, 2
dec edx
jne 0x409bcf
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x2c], esi
mov word [ecx + esi*2], bx
mov ecx, 0x19
xor eax, eax
lea edi, [esp + 0x174]
push str..module_config.ini
lea edx, [esp + 0x178]
push 0x823
rep stosd dword es:[edi], eax
push edx
push 0x42c54c
lea eax, [esp + 0x58]
push str.IconPath
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea ecx, [esp + 0x174]
push ecx
call fcn.00417a8e
add esp, 4
mov esi, eax
lea ecx, [esp + 0x34]
push 1
push esi
call fcn.0040ce00
test al, al
je 0x409c6f
mov eax, dword [esp + 0x38]
cmp esi, ebx
lea ecx, [esp + 0x174]
jbe 0x409c63
mov edx, esi
mov di, word [ecx]
add ecx, 2
mov word [eax], di
add eax, 2
dec edx
jne 0x409c54
mov edx, dword [esp + 0x38]
mov dword [esp + 0x3c], esi
mov word [edx + esi*2], bx
mov eax, dword [0x42c4a0]
lea ecx, [esp + 0x14]
push ecx
push 1
push eax
mov ecx, 0x42c498
call fcn.0040ed60
push 1
lea ecx, [esp + 0x38]
mov dword [esp + 0x11c8], 4
call fcn.0040cf30
push 1
lea ecx, [esp + 0x28]
mov byte [esp + 0x11c8], 3
call fcn.0040cf30
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x11c4], 0xffffffff
cmp ecx, ebx
je 0x409ce0
mov al, byte [ecx - 1]
cmp al, bl
je 0x409cd4
cmp al, 0xff
je 0x409cd4
dec al
mov byte [ecx - 1], al
jmp 0x409ce0
add ecx, 0xfffffffe
push ecx
call fcn.0041749e
add esp, 4
mov eax, dword [esp + 0x44]
mov edx, ebp
cmp edx, eax
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
jl 0x409a68
pop ebp
mov ecx, dword [esp + 0x11b8]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x11b8
ret