Function at 0x401470
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2e8
mov eax, dword [0x421004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x104
lea eax, [ebp - 0x1a0]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov al, byte [ebp - 0x1a0]
lea edx, [ebp - 0x1a0]
mov ecx, edx
test al, al
je 0x4014c7
nop word [eax + eax]
cmp al, 0x2f
je 0x4014bc
cmp al, 0x5c
je 0x4014bc
cmp al, 0x3a
jne 0x4014bf
lea edx, [ecx + 1]
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x4014b0
movq xmm0, qword [str.writeip.ini]
mov eax, dword [0x41ec0c]
movq qword [edx], xmm0
movaps xmm0, xmmword [0x41ee70]
mov dword [edx + 8], eax
lea eax, [ebp - 0x2e0]
push eax
lea eax, [ebp - 0x1a0]
movq qword [0x42275c], xmm0
push eax
movups xmmword [0x42274c], xmm0
mov word [0x422764], 0x2020
mov byte [0x422766], 0
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x401a6a
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x1a0]
push eax
push 0x79
lea eax, [ebp - 0x98]
push eax
push 0x41ea38
push str.54321
push str.Locations
call edi
lea eax, [ebp - 0x98]
push eax
push str.__120s
push 0x4224e8
call fcn.00401010
mov ecx, 0x4224e8
add esp, 0xc
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x401570
sub ecx, edx
lea eax, [ecx - 1]
test eax, eax
js 0x401595
cmp byte [eax + 0x4224e8], 0x20
jne 0x401595
mov byte [eax + 0x4224e8], 0
sub eax, 1
jns 0x401580
lea eax, [ebp - 0x1a0]
push eax
push 0x79
lea eax, [ebp - 0x98]
push eax
push 0x41ea38
push 0x41ec2c
push str.Locations
call edi
lea eax, [ebp - 0x98]
push eax
push str.__120s
push 0x422561
call fcn.00401010
mov ecx, 0x422561
add esp, 0xc
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4015d7
sub ecx, edx
lea eax, [ecx - 1]
test eax, eax
js 0x4015fc
cmp byte [eax + 0x422561], 0x20
jne 0x4015fc
mov byte [eax + 0x422561], 0
sub eax, 1
jns 0x4015e7
lea eax, [ebp - 0x1a0]
push eax
push 0x79
lea eax, [ebp - 0x98]
push eax
push 0x41ea38
push 0x41ec30
push str.Locations
call edi
lea eax, [ebp - 0x98]
push eax
push str.__120s
push 0x4225da
call fcn.00401010
mov ecx, 0x4225da
add esp, 0xc
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x401640
sub ecx, edx
lea eax, [ecx - 1]
test eax, eax
js 0x401665
cmp byte [eax + 0x4225da], 0x20
jne 0x401665
mov byte [eax + 0x4225da], 0
sub eax, 1
jns 0x401650
lea eax, [ebp - 0x1a0]
push eax
push 0x79
lea eax, [ebp - 0x98]
push eax
push 0x41ea38
push 0x41ec34
push str.Locations
call edi
lea eax, [ebp - 0x98]
push eax
push str.__120s
push 0x422653
call fcn.00401010
mov ecx, 0x422653
add esp, 0xc
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4016a7
sub ecx, edx
lea eax, [ecx - 1]
test eax, eax
js 0x4016cc
cmp byte [eax + 0x422653], 0x20
jne 0x4016cc
mov byte [eax + 0x422653], 0
sub eax, 1
jns 0x4016b7
lea eax, [ebp - 0x1a0]
push eax
push 0x79
lea eax, [ebp - 0x98]
push eax
push 0x41ea38
push 0x41ec38
push str.Locations
call edi
lea eax, [ebp - 0x98]
push eax
push str.__120s
push 0x4226cc
call fcn.00401010
mov ecx, 0x4226cc
add esp, 0xc
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x401710
sub ecx, edx
lea eax, [ecx - 1]
test eax, eax
js 0x401735
cmp byte [eax + 0x4226cc], 0x20
jne 0x401735
mov byte [eax + 0x4226cc], 0
sub eax, 1
jns 0x401720
lea eax, [ebp - 0x1a0]
push eax
push 0x10
lea eax, [ebp - 0x14]
push eax
push 0x41ec3c
push str.DeleteFiles
push str.SetupIP
call edi
mov ecx, 0x41ec3c
lea eax, [ebp - 0x14]
nop dword [eax + eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x401780
test dl, dl
je 0x40177c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x401780
add eax, 2
add ecx, 2
test dl, dl
jne 0x401760
xor ecx, ecx
jmp 0x401785
sbb ecx, ecx
or ecx, 1
xor eax, eax
test ecx, ecx
sete al
mov dword [0x422834], eax
lea eax, [ebp - 0x1a0]
push eax
push 0x10
lea eax, [ebp - 0x14]
push eax
push 0x41ec54
push str.RandomLocation
push str.SetupIP
call edi
mov ecx, 0x41ec3c
lea eax, [ebp - 0x14]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4017d7
test dl, dl
je 0x4017d3
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4017d7
add eax, 2
add ecx, 2
test dl, dl
jne 0x4017b7
xor ecx, ecx
jmp 0x4017dc
sbb ecx, ecx
or ecx, 1
xor eax, eax
test ecx, ecx
sete al
mov dword [0x4227cc], eax
lea eax, [ebp - 0x1a0]
push eax
push 0x10
lea eax, [ebp - 0x14]
push eax
push 0x41ec54
push str.UpdatedFilesOnly
push str.SetupIP
call edi
mov ecx, 0x41ec3c
lea eax, [ebp - 0x14]
nop
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x401830
test dl, dl
je 0x40182c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x401830
add eax, 2
add ecx, 2
test dl, dl
jne 0x401810
xor ecx, ecx
jmp 0x401835
sbb ecx, ecx
or ecx, 1
xor eax, eax
test ecx, ecx
sete al
mov dword [0x422748], eax
lea eax, [ebp - 0x1a0]
push eax
push 0x10
lea eax, [ebp - 0x14]
push eax
push 0x41ec54
push str.AllowPathSelection
push str.SetupIP
call edi
mov ecx, 0x41ec3c
lea eax, [ebp - 0x14]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x401887
test dl, dl
je 0x401883
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x401887
add eax, 2
add ecx, 2
test dl, dl
jne 0x401867
xor ecx, ecx
jmp 0x40188c
sbb ecx, ecx
or ecx, 1
xor eax, eax
test ecx, ecx
sete al
mov dword [0x422a04], eax
lea eax, [ebp - 0x1a0]
push eax
push 0x10
lea eax, [ebp - 0x14]
push eax
push 0x41ec54
push str.EnableLogging
push str.SetupIP
call edi
mov ecx, 0x41ec3c
lea eax, [ebp - 0x14]
nop
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4018e0
test dl, dl
je 0x4018dc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4018e0
add eax, 2
add ecx, 2
test dl, dl
jne 0x4018c0
xor ecx, ecx
jmp 0x4018e5
sbb ecx, ecx
or ecx, 1
xor eax, eax
test ecx, ecx
sete al
mov dword [0x42289c], eax
lea eax, [ebp - 0x1a0]
push eax
push 0x10
lea eax, [ebp - 0x14]
push eax
push 0x41ec54
push str.AllowRestart
push str.SetupIP
call edi
mov ecx, 0x41ec3c
lea eax, [ebp - 0x14]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x401937
test dl, dl
je 0x401933
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x401937
add eax, 2
add ecx, 2
test dl, dl
jne 0x401917
xor ecx, ecx
jmp 0x40193c
sbb ecx, ecx
or ecx, 1
xor eax, eax
test ecx, ecx
sete al
mov dword [0x422904], eax
lea eax, [ebp - 0x1a0]
push eax
push 0xfa
push 0x422908
push 0x41ea38
push str.DownloadPath
push str.SetupIP
call edi
lea eax, [ebp - 0x1a0]
push eax
push 0x10
lea eax, [ebp - 0x14]
push eax
push 0x41ec3c
push str.ShowLanguageDialog
push str.Languages
call edi
mov ecx, 0x41ec3c
lea eax, [ebp - 0x14]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4019b0
test dl, dl
je 0x4019ac
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4019b0
add eax, 2
add ecx, 2
test dl, dl
jne 0x401990
xor eax, eax
jmp 0x4019b5
sbb eax, eax
or eax, 1
test eax, eax
sete al
add al, 0x30
xor esi, esi
mov byte [0x42274c], al
lea eax, [ebp - 0x1a0]
push eax
push 0x10
lea eax, [ebp - 0x14]
push eax
push 0x41ea38
push dword [esi*8 + 0x4218b4]
push str.Languages
call edi
lea ecx, [ebp - 0x14]
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4019f0
sub ecx, edx
je 0x401a44
mov ecx, 0x41ec3c
lea eax, [ebp - 0x14]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x401a30
test dl, dl
je 0x401a1f
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x401a30
add eax, 2
add ecx, 2
test dl, dl
jne 0x401a03
xor eax, eax
test eax, eax
sete al
add al, 0x30
mov byte [esi + 0x42274d], al
jmp 0x401a4b
sbb eax, eax
or eax, 1
test eax, eax
sete al
add al, 0x30
mov byte [esi + 0x42274d], al
jmp 0x401a4b
mov byte [esi + 0x42274d], 0x20
inc esi
cmp esi, 0x19
jb 0x4019c3
mov eax, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404b37
mov esp, ebp
pop ebp
ret
mov eax, dword [0x41ec20]
movups xmm0, xmmword [str.http:__x.x.x.x_Client]
mov ecx, dword [ebp - 4]
mov dword [0x4226dc], eax
xor ecx, ebp
mov ax, word [0x41ec24]
pop edi
mov word [0x4226e0], ax
xor eax, eax
movups xmmword [0x4226cc], xmm0
mov dword [0x422834], 1
mov dword [0x4227cc], 0
mov dword [0x422748], 0
mov dword [0x422a04], 0
mov dword [0x42289c], 0
mov dword [0x422904], 0
pop esi
call fcn.00404b37
mov esp, ebp
pop ebp
ret