Function at 0x402180
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x43d146
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x480
push ebx
push ebp
push esi
push edi
lea ecx, [esp + 0x20]
call fcn.00417ea7
xor ebx, ebx
lea ecx, [esp + 0x10]
mov dword [esp + 0x498], ebx
call fcn.00436051
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x3c]
push str.ZXSSBC.ini
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x4a4]
push 0x467890
lea ecx, [esp + 0x394]
push 0x44b5dc
push ecx
mov byte [esp + 0x4a8], 1
mov byte [eax], bl
call fcn.0042018d
add esp, 0x10
lea edx, [esp + 0x38c]
push edx
push ebx
push str.TerminalType
push 0x44b5c4
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov esi, dword [esp + 0x4ac]
mov edi, dword [esp + 0x4ab]
and esi, 0xffff
and edi, 0xff
mov ebp, eax
push esi
push edi
lea eax, [esp + 0x290]
push str.config_d__d.ini
push eax
call fcn.0042018d
push esi
push edi
lea ecx, [esp + 0x98]
push str._d__d.ini
push ecx
call fcn.0042018d
mov edx, dword [esp + 0x4c4]
add esp, 0x20
lea eax, [esp + 0x3c]
lea ecx, [esp + 0x288]
push 1
push edx
push ebx
push eax
mov eax, dword [0x467aa0]
push ecx
mov ecx, dword [0x467aa4]
sub esp, 0x10
mov edx, esp
mov dword [edx], eax
mov eax, dword [0x467aa8]
mov dword [edx + 4], ecx
mov ecx, dword [0x467aac]
mov dword [edx + 8], eax
mov dword [edx + 0xc], ecx
call fcn.00407f20
add esp, 0x24
cmp eax, ebx
je 0x40267c
mov esi, 0x45e508
lea eax, [esp + 0x3c]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x4022d2
cmp cl, bl
je 0x4022ce
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x4022d2
add eax, 2
add esi, 2
cmp cl, bl
jne 0x4022ae
xor eax, eax
jmp 0x4022d7
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x4024b7
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x3c]
cmp bp, bx
rep stosd dword es:[edi], eax
je 0x4023d4
mov esi, ebp
lea eax, [esp + 0x288]
and esi, 0xffff
push esi
push str.config_d.ini
push eax
call fcn.0042018d
push esi
lea ecx, [esp + 0x90]
push str._d.ini
push ecx
call fcn.0042018d
add esp, 0x18
call fcn.00435a9c
cmp eax, ebx
je 0x402338
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x74]
jmp 0x40233a
xor eax, eax
mov eax, dword [eax + 0x1c]
push ebx
push 1
push 0xbb8
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
mov ecx, dword [esp + 0x4a4]
push 1
push ecx
lea edx, [esp + 0x44]
push ebx
lea eax, [esp + 0x294]
push edx
mov edx, dword [0x467aa0]
push eax
mov eax, dword [0x467aa4]
sub esp, 0x10
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [0x467aa8]
mov dword [ecx + 4], eax
mov eax, dword [0x467aac]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
call fcn.00407f20
add esp, 0x24
cmp eax, ebx
je 0x40267c
mov esi, 0x45e508
lea eax, [esp + 0x3c]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x4023c7
cmp cl, bl
je 0x4023c3
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x4023c7
add eax, 2
add esi, 2
cmp cl, bl
jne 0x4023a3
xor eax, eax
jmp 0x4023cc
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x4024b7
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x3c]
push str.config_version.ini
rep stosd dword es:[edi], eax
lea eax, [esp + 0x28c]
push eax
call fcn.0042018d
lea ecx, [esp + 0x88]
push str.version.ini
push ecx
call fcn.0042018d
mov edx, dword [esp + 0x4b4]
add esp, 0x10
lea eax, [esp + 0x3c]
lea ecx, [esp + 0x288]
push 1
push edx
push ebx
push eax
mov eax, dword [0x467aa0]
push ecx
mov ecx, dword [0x467aa4]
sub esp, 0x10
mov edx, esp
mov dword [edx], eax
mov eax, dword [0x467aa8]
mov dword [edx + 4], ecx
mov ecx, dword [0x467aac]
mov dword [edx + 8], eax
mov dword [edx + 0xc], ecx
call fcn.00407f20
add esp, 0x24
cmp eax, ebx
je 0x40267c
mov esi, 0x45e508
lea eax, [esp + 0x3c]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x402483
cmp cl, bl
je 0x40247f
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x402483
add eax, 2
add esi, 2
cmp cl, bl
jne 0x40245f
xor eax, eax
jmp 0x402488
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x4024b7
lea ecx, [esp + 0x10]
mov byte [esp + 0x498], bl
call fcn.004360a6
lea ecx, [esp + 0x20]
mov dword [esp + 0x498], 0xffffffff
call fcn.00417ee4
mov al, 2
jmp 0x402791
lea eax, [esp + 0x80]
lea ecx, [esp + 0x184]
push eax
push 0x467890
push 0x44b5dc
push ecx
call fcn.0042018d
add esp, 0x10
lea edx, [esp + 0x184]
lea ecx, [esp + 0x20]
push ebx
push edx
call fcn.00417f6a
test eax, eax
je 0x402567
lea eax, [esp + 0x184]
mov ecx, 0x11
push eax
lea esi, [esp + 0x40]
sub esp, 0x44
mov edi, esp
rep movsd dword es:[edi], dword [esi]
call fcn.004032f0
add esp, 0x48
test eax, eax
je 0x402567
lea edi, [esp + 0x184]
or ecx, 0xffffffff
xor eax, eax
mov byte [esp + 0x498], bl
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, dword [esp + 0x4a0]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
call fcn.004360a6
lea ecx, [esp + 0x20]
mov dword [esp + 0x498], 0xffffffff
call fcn.00417ee4
mov al, 1
jmp 0x402791
push 0x12c
call fcn.0043178d
mov esi, eax
mov al, byte [0x467168]
add esp, 4
cmp al, 2
jne 0x40258e
lea eax, [esp + 0x80]
push eax
push 0x44b558
jmp 0x40259b
lea ecx, [esp + 0x80]
push ecx
push str.Start_download__s_...
push esi
call fcn.0042018d
add esp, 0xc
call fcn.00435a9c
cmp eax, ebx
je 0x4025b6
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x74]
jmp 0x4025b8
xor eax, eax
mov eax, dword [eax + 0x1c]
mov edi, dword [sym.imp.USER32.dll_PostMessageA]
push esi
push 1
push 0xbb8
push eax
call edi
mov ecx, dword [esp + 0x4a4]
push 1
push ecx
lea edx, [esp + 0x18c]
push ebx
lea eax, [esp + 0x294]
push edx
mov edx, dword [0x467aa0]
push eax
mov eax, dword [0x467aa4]
sub esp, 0x10
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [0x467aa8]
mov dword [ecx + 4], eax
mov eax, dword [0x467aac]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
call fcn.00407e80
add esp, 0x24
cmp al, 1
push 0x12c
je 0x4026a7
call fcn.0043178d
mov esi, eax
mov al, byte [0x467168]
add esp, 4
cmp al, 2
jne 0x402644
lea ecx, [esp + 0x80]
push ecx
push 0x44b52c
jmp 0x402651
lea edx, [esp + 0x80]
push edx
push str.Faile_to_download__s
push esi
call fcn.0042018d
add esp, 0xc
call fcn.00435a9c
cmp eax, ebx
je 0x40266c
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x74]
jmp 0x40266e
xor eax, eax
mov eax, dword [eax + 0x1c]
push esi
push 1
push 0xbb8
push eax
call edi
lea ecx, [esp + 0x10]
mov byte [esp + 0x498], bl
call fcn.004360a6
lea ecx, [esp + 0x20]
mov dword [esp + 0x498], 0xffffffff
call fcn.00417ee4
or al, 0xff
jmp 0x402791
call fcn.0043178d
mov esi, eax
mov al, byte [0x467168]
add esp, 4
cmp al, 2
jne 0x4026c9
lea ecx, [esp + 0x80]
push ecx
push 0x44b504
jmp 0x4026d6
lea edx, [esp + 0x80]
push edx
push str.Sucessfully_download__s
push esi
call fcn.0042018d
add esp, 0xc
call fcn.00435a9c
cmp eax, ebx
je 0x4026f1
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x74]
jmp 0x4026f3
xor eax, eax
mov eax, dword [eax + 0x1c]
push esi
push 1
push 0xbb8
push eax
call edi
lea edi, [esp + 0x184]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea eax, [esp + 0x184]
mov edx, ecx
mov esi, edi
mov edi, dword [esp + 0x4a0]
push eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [0x467a98]
push ecx
push str.UpdateInternal
push str.DownloadOption
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
lea edx, [esp + 0x184]
push 0x467688
push edx
push str.LastVersionIni
push str.Common
mov dword [0x467a98], eax
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
lea ecx, [esp + 0x10]
mov byte [esp + 0x498], bl
call fcn.004360a6
lea ecx, [esp + 0x20]
mov dword [esp + 0x498], 0xffffffff
call fcn.00417ee4
xor al, al
mov ecx, dword [esp + 0x490]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x48c
ret