Function at 0x4204d0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x596de6
mov eax, dword fs:[0]
push eax
sub esp, 0x91c
mov eax, dword [0x6073a4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov dword [ebp - 4], 0
mov dword [ebp - 0x8f0], 0
mov dword [ebp - 0x924], edi
mov dword [edi], 0
call fcn.00427660
mov ecx, eax
test ecx, ecx
jne 0x420533
push 0x80004005
call fcn.00427410
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
xorps xmm0, xmm0
mov dword [ebp - 0x8f0], 1
movq qword [ebp - 0x8a0], xmm0
mov dword [ebp - 0x8a0], 0
mov dword [ebp - 0x89c], 0
push str.SoftwareMicrosoftWindowsCurrentVersionApp_PathsMagicToolkit.exe
lea ecx, [ebp - 0x898]
mov dword [ebp - 4], 1
call fcn.00427350
lea eax, [ebp - 0x8a0]
push eax
push 0x20019
push 0
push dword [ebp - 0x898]
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edx, dword [ebp - 0x898]
neg eax
sbb esi, esi
or ebx, 0xffffffff
inc esi
add edx, 0xfffffff0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4205c1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test esi, esi
je 0x4206d6
call fcn.00427660
mov ecx, eax
test ecx, ecx
jne 0x4205de
push 0x80004005
call fcn.00427410
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x894], eax
lea eax, [ebp - 0x894]
mov byte [ebp - 4], 2
push eax
push ecx
mov ecx, esp
push str.DisplayIcon
call fcn.00427350
lea ecx, [ebp - 0x8a0]
call fcn.00428e70
test eax, eax
je 0x4206b5
push str.main.ini
push 0x5f8268
lea ecx, [ebp - 0x894]
call fcn.00425290
push 0x800
lea eax, [ebp - 0x890]
push 0
push eax
call fcn.004cbb60
mov esi, dword [ebp - 0x894]
mov ecx, 1
add esp, 0xc
sub ecx, dword [esi - 4]
mov eax, dword [esi - 8]
or eax, ecx
jge 0x42066a
push 0
lea ecx, [ebp - 0x894]
call fcn.00427130
mov esi, dword [ebp - 0x894]
push esi
push 0x400
lea eax, [ebp - 0x890]
push eax
push 0x5f8c44
push 0x5f828c
push 0x5f8294
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea ecx, [ebp - 0x890]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x420695
sub ecx, edx
lea eax, [ebp - 0x890]
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.004272a0
jmp 0x4206bb
mov esi, dword [ebp - 0x894]
mov byte [ebp - 4], 1
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4206d6
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [edi]
mov eax, dword [eax - 0xc]
test eax, eax
je 0x4206e8
cmp eax, 0x14
jge 0x420b07
lea ecx, [ebp - 0x898]
mov dword [ebp - 0x898], 0
call fcn.0042c7f0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x894]
xor edx, edx
mov dword [ebp - 0x894], 0
call fcn.00423f80
push 0x80
lea eax, [ebp - 0x90]
push 0
push eax
call fcn.004cbb60
add esp, 0xc
lea ecx, [ebp - 0x90]
call fcn.00424ce0
xor eax, eax
mov dword [ebp - 0x8a4], 7
mov dword [ebp - 0x8a8], 0
mov word [ebp - 0x8b8], ax
mov byte [ebp - 4], 5
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
sub esp, 0x18
mov edx, esp
mov dword [edx + 0x14], 0xf
mov dword [edx + 0x10], 0
cmp dword [edx + 0x14], 0x10
jb 0x42077e
mov eax, dword [edx]
jmp 0x420780
mov eax, edx
mov byte [eax], 0
cmp byte [ebp - 0x90], 0
jne 0x420790
xor ecx, ecx
jmp 0x4207a9
lea ecx, [ebp - 0x90]
lea esi, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4207a0
sub ecx, esi
push ecx
lea eax, [ebp - 0x90]
mov ecx, edx
push eax
call fcn.00426b80
lea ecx, [ebp - 0x908]
call fcn.00430030
add esp, 0x18
mov esi, eax
mov byte [ebp - 4], 6
cmp dword [esi + 0x14], 8
jb 0x4207d4
mov esi, dword [esi]
mov ebx, dword [ebp - 0x894]
mov ecx, 1
sub ecx, dword [ebx - 4]
mov eax, dword [ebx - 8]
or eax, ecx
jge 0x4207fc
push 0
lea ecx, [ebp - 0x894]
call fcn.00427130
mov ebx, dword [ebp - 0x894]
mov eax, dword [ebp - 0x898]
mov edx, 1
sub edx, dword [eax - 4]
mov ecx, dword [eax - 8]
or ecx, edx
jge 0x420824
push 0
lea ecx, [ebp - 0x898]
call fcn.00427130
mov eax, dword [ebp - 0x898]
push esi
push ebx
push eax
lea eax, [ebp - 0x920]
push str._s_s_s_d
push eax
call fcn.00430370
add esp, 0x18
mov esi, eax
lea eax, [ebp - 0x8b8]
cmp eax, esi
je 0x42088e
mov eax, dword [ebp - 0x8a4]
cmp eax, 8
jb 0x420865
inc eax
lea ecx, [ebp - 0x8b8]
push eax
push dword [ebp - 0x8b8]
call fcn.00426d40
xor eax, eax
mov dword [ebp - 0x8a4], 7
push esi
lea ecx, [ebp - 0x8b8]
mov dword [ebp - 0x8a8], 0
mov word [ebp - 0x8b8], ax
call fcn.004263f0
mov eax, dword [ebp - 0x90c]
cmp eax, 8
jb 0x4208ac
inc eax
lea ecx, [ebp - 0x920]
push eax
push dword [ebp - 0x920]
call fcn.00426d40
xor eax, eax
mov byte [ebp - 4], 5
mov word [ebp - 0x920], ax
mov eax, dword [ebp - 0x8f4]
mov dword [ebp - 0x90c], 7
mov dword [ebp - 0x910], 0
cmp eax, 8
jb 0x4208eb
inc eax
lea ecx, [ebp - 0x908]
push eax
push dword [ebp - 0x908]
call fcn.00426d40
sub esp, 0x18
mov ecx, esp
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
cmp dword [ecx + 0x14], 8
jb 0x420908
mov eax, dword [ecx]
jmp 0x42090a
mov eax, ecx
xor edx, edx
push 0xffffffffffffffff
mov word [eax], dx
lea eax, [ebp - 0x8b8]
push edx
push eax
call fcn.004262d0
lea ecx, [ebp - 0x8e8]
call fcn.00430090
mov byte [ebp - 4], 8
lea eax, [ebp - 0x8e8]
cmp dword [ebp - 0x8d4], 0x10
cmovae eax, dword [ebp - 0x8e8]
add esp, 0x14
mov ecx, esp
push eax
call fcn.00424ed0
lea ecx, [ebp - 0x8ec]
call fcn.00428320
add esp, 4
mov esi, eax
mov byte [ebp - 4], 9
mov ecx, 1
mov eax, dword [esi]
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
or eax, ecx
jge 0x42097a
push 0
mov ecx, esi
call fcn.004258f0
mov edx, dword [esi]
mov dword [ebp - 0x8bc], 0xf
mov dword [ebp - 0x8c0], 0
mov byte [ebp - 0x8d0], 0
cmp byte [edx], 0
jne 0x4209a0
xor ecx, ecx
jmp 0x4209ae
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4209a5
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x8d0]
call fcn.00426b80
mov byte [ebp - 4], 0xb
or ebx, 0xffffffff
mov edx, dword [ebp - 0x8ec]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4209df
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
sub esp, 0x18
mov ecx, esp
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
cmp dword [ecx + 0x14], 0x10
jb 0x4209fc
mov eax, dword [ecx]
jmp 0x4209fe
mov eax, ecx
push 0xffffffffffffffff
mov byte [eax], 0
lea eax, [ebp - 0x8d0]
push 0
push eax
call fcn.004266b0
lea ecx, [ebp - 0x908]
call fcn.00430030
add esp, 0x18
mov edx, eax
mov byte [ebp - 4], 0xc
cmp dword [edx + 0x14], 8
jb 0x420a2d
mov edx, dword [edx]
test edx, edx
jne 0x420a35
xor ecx, ecx
jmp 0x420a4f
mov ecx, edx
lea esi, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x420a40
sub ecx, esi
sar ecx, 1
push ecx
push edx
mov ecx, edi
call fcn.004272a0
mov eax, dword [ebp - 0x8f4]
cmp eax, 8
jb 0x420a76
inc eax
lea ecx, [ebp - 0x908]
push eax
push dword [ebp - 0x908]
call fcn.00426d40
lea ecx, [ebp - 0x8d0]
call fcn.004265a0
lea ecx, [ebp - 0x8e8]
call fcn.004265a0
mov eax, dword [ebp - 0x8a4]
cmp eax, 8
jb 0x420aaa
inc eax
lea ecx, [ebp - 0x8b8]
push eax
push dword [ebp - 0x8b8]
call fcn.00426d40
xor eax, eax
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x894]
mov word [ebp - 0x8b8], ax
add edx, 0xfffffff0
mov dword [ebp - 0x8a4], 7
mov eax, ebx
mov dword [ebp - 0x8a8], 0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x420ae8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x898]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x420b07
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x8a0]
test ecx, ecx
je 0x420b18
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004c8d78
mov esp, ebp
pop ebp
ret 4