Function at 0x4061a0
Capabilities:
Create directory
Create process on windows
Query environment variable
Read .ini file
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x89c
mov eax, dword [0x436a98]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 0x880], ecx
push 0
mov ecx, dword [ebp - 0x880]
add ecx, 4
call fcn.00402840
push 0
push 0xc
call dword [sym.imp.USER32.dll_GetSystemMetrics]
push eax
push 0xb
call dword [sym.imp.USER32.dll_GetSystemMetrics]
push eax
push 1
push 0x80
mov ecx, 0x437da4
call fcn.0040a6d0
mov eax, dword [eax]
push eax
call dword [sym.imp.USER32.dll_LoadImageW]
mov dword [ebp - 4], eax
push 1
mov ecx, dword [ebp - 4]
push ecx
mov ecx, dword [ebp - 0x880]
add ecx, 4
call fcn.00403f30
push 0
push 0x32
call dword [sym.imp.USER32.dll_GetSystemMetrics]
push eax
push 0x31
call dword [sym.imp.USER32.dll_GetSystemMetrics]
push eax
push 1
push 0x80
mov ecx, 0x437da4
call fcn.0040a6d0
mov edx, dword [eax]
push edx
call dword [sym.imp.USER32.dll_LoadImageW]
mov dword [ebp - 0x214], eax
push 0
mov eax, dword [ebp - 0x214]
push eax
mov ecx, dword [ebp - 0x880]
add ecx, 4
call fcn.00403f30
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
mov ecx, 0x437da4
call fcn.0040acf0
mov dword [ebp - 0x218], eax
cmp dword [ebp - 0x880], 0
je 0x40628a
mov ecx, dword [ebp - 0x880]
add ecx, 0x20
mov dword [ebp - 0x884], ecx
jmp 0x406294
mov dword [ebp - 0x884], 0
mov edx, dword [ebp - 0x884]
push edx
mov ecx, dword [ebp - 0x218]
call fcn.0040a890
cmp dword [ebp - 0x880], 0
je 0x4062c0
mov eax, dword [ebp - 0x880]
add eax, 0x24
mov dword [ebp - 0x888], eax
jmp 0x4062ca
mov dword [ebp - 0x888], 0
mov ecx, dword [ebp - 0x888]
push ecx
mov ecx, dword [ebp - 0x218]
call fcn.0040a8d0
mov edx, dword [ebp - 0x880]
mov eax, dword [edx + 4]
push eax
mov ecx, dword [ebp - 0x880]
add ecx, 0x2c
call fcn.0040af90
mov ecx, dword [ebp - 0x880]
mov dword [ecx + 0xe8], 0
mov edx, dword [ebp - 0x880]
mov dword [edx + 0x5c], 0
mov eax, dword [ebp - 0x880]
mov dword [eax + 0x60], 1
mov ecx, dword [ebp - 0x880]
mov byte [ecx + 0x48], 0
mov edx, dword [ebp - 0x880]
mov dword [edx + 0x4c], 0
push str.TaskbarCreated
call dword [sym.imp.USER32.dll_RegisterWindowMessageW]
call fcn.00418370
push eax
mov ecx, dword [ebp - 0x880]
add ecx, 0x50
call fcn.004099d0
mov ecx, dword [ebp - 0x880]
add ecx, 0x50
call fcn.0040bab0
test eax, eax
je 0x4063cf
push 0x42d7a0
mov ecx, dword [ebp - 0x880]
add ecx, 0x50
call fcn.00418500
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x62c], eax
cmp dword [ebp - 0x62c], 0
je 0x4063cd
mov ecx, dword [ebp - 0x880]
add ecx, 0x54
call fcn.00404f50
push eax
push 0x42d478
push 0x42d468
call dword [ebp - 0x62c]
mov ecx, dword [ebp - 0x880]
add ecx, 0x58
call fcn.00404f50
push eax
push 0x42d488
push 0x42d468
call dword [ebp - 0x62c]
jmp 0x4063f1
push 0xbb8
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 1
push 0x111
mov ecx, dword [ebp - 0x880]
add ecx, 4
call fcn.0040adf0
mov ecx, dword [ebp - 0x880]
call fcn.00407280
mov ecx, dword [ebp - 0x880]
call fcn.00406e70
xor eax, eax
mov word [ebp - 0x210], ax
push 0x206
push 0
lea ecx, [ebp - 0x20e]
push ecx
call fcn.0041c220
add esp, 0xc
push 0x104
lea edx, [ebp - 0x210]
push edx
push 0x42d7b0
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push 0
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
xor ecx, ecx
mov word [ebp - 0x420], cx
push 0x206
push 0
lea edx, [ebp - 0x41e]
push edx
call fcn.0041c220
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
push 0x104
lea ecx, [ebp - 0x420]
push ecx
call fcn.0041bdae
add esp, 0xc
push 0x42d7d4
lea edx, [ebp - 0x420]
push edx
call fcn.00403be0
add esp, 8
xor eax, eax
mov word [ebp - 0x628], ax
push 0x206
push 0
lea ecx, [ebp - 0x626]
push ecx
call fcn.0041c220
add esp, 0xc
lea edx, [ebp - 0x420]
push edx
push 0x104
lea eax, [ebp - 0x628]
push eax
lea ecx, [ebp - 0x210]
push ecx
push 0x42d7f0
push 0x42d804
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push 0
lea edx, [ebp - 0x628]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea eax, [ebp - 0x628]
push eax
push 0x42d814
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ecx, dword [ebp - 0x880]
add ecx, 0x54
call fcn.00418500
test eax, eax
je 0x406828
mov byte [ebp - 0x62d], 0
mov ecx, dword [ebp - 0x880]
add ecx, 0x54
call fcn.00418500
mov dword [ebp - 0x88c], eax
lea ecx, [ebp - 0x62d]
push ecx
mov edx, dword [ebp - 0x88c]
push edx
mov eax, dword [ebp - 0x88c]
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
call edx
test eax, eax
jne 0x406806
movzx eax, byte [ebp - 0x62d]
test eax, eax
je 0x4065cd
mov ecx, dword [ebp - 0x880]
add ecx, 0x58
call fcn.00418500
test eax, eax
je 0x4065c8
mov ecx, dword [ebp - 0x880]
add ecx, 0x58
call fcn.00418500
mov dword [ebp - 0x890], eax
mov ecx, dword [ebp - 0x890]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x890]
push eax
mov ecx, dword [edx + 0xc]
call ecx
test eax, eax
jne 0x4065ae
mov ecx, dword [ebp - 0x880]
call fcn.00406840
jmp 0x4065c8
push 0x2813
push 0xd5
push 0x27dd
mov ecx, dword [ebp - 0x880]
call fcn.00407000
jmp 0x406804
mov dword [ebp - 0x634], 0
call fcn.00405010
test eax, eax
je 0x406613
mov ecx, dword [ebp - 0x880]
add ecx, 0x54
call fcn.00418500
mov dword [ebp - 0x894], eax
mov edx, dword [ebp - 0x894]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x894]
push ecx
mov edx, dword [eax + 0x10]
call edx
mov dword [ebp - 0x634], eax
jmp 0x406712
xor eax, eax
mov word [ebp - 0x840], ax
push 0x206
push 0
lea ecx, [ebp - 0x83e]
push ecx
call fcn.0041c220
add esp, 0xc
push 0x104
lea edx, [ebp - 0x840]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x3c
push 0
lea eax, [ebp - 0x87c]
push eax
call fcn.0041c220
add esp, 0xc
mov dword [ebp - 0x87c], 0x3c
mov dword [ebp - 0x878], 0x40
mov dword [ebp - 0x874], 0
mov dword [ebp - 0x870], 0x42d838
lea ecx, [ebp - 0x840]
mov dword [ebp - 0x86c], ecx
mov dword [ebp - 0x868], 0x42d844
mov dword [ebp - 0x864], 0
mov dword [ebp - 0x860], 5
lea edx, [ebp - 0x87c]
push edx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
push 0xffffffffffffffff
mov eax, dword [ebp - 0x844]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov byte [ebp - 0x635], 0
mov ecx, dword [ebp - 0x880]
add ecx, 0x54
call fcn.00418500
mov dword [ebp - 0x898], eax
lea ecx, [ebp - 0x635]
push ecx
mov edx, dword [ebp - 0x898]
push edx
mov eax, dword [ebp - 0x898]
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
call edx
movzx eax, byte [ebp - 0x635]
test eax, eax
jne 0x406712
mov dword [ebp - 0x634], 0x80004005
cmp dword [ebp - 0x634], 0
jge 0x40673a
push 0x2815
push 0xbd
push 0x27dd
mov ecx, dword [ebp - 0x880]
call fcn.00407000
jmp 0x406804
cmp dword [ebp - 0x634], 0
jne 0x4067c8
push 0x2816
push 0x27dd
push 0x27dd
mov ecx, dword [ebp - 0x880]
call fcn.00407000
mov ecx, dword [ebp - 0x880]
add ecx, 0x58
call fcn.00418500
test eax, eax
je 0x4067c6
mov ecx, dword [ebp - 0x880]
add ecx, 0x58
call fcn.00418500
mov dword [ebp - 0x89c], eax
mov ecx, dword [ebp - 0x89c]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x89c]
push eax
mov ecx, dword [edx + 0xc]
call ecx
test eax, eax
jne 0x4067ac
mov ecx, dword [ebp - 0x880]
call fcn.00406840
jmp 0x4067c6
push 0x2813
push 0xd5
push 0x27dd
mov ecx, dword [ebp - 0x880]
call fcn.00407000
jmp 0x406804
push 0x2817
push 0xbd
push 0x27dd
mov ecx, dword [ebp - 0x880]
call fcn.00407000
push 0xbb8
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 1
push 0x111
mov ecx, dword [ebp - 0x880]
add ecx, 4
call fcn.0040adf0
jmp 0x406828
push 0xbb8
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 1
push 0x111
mov ecx, dword [ebp - 0x880]
add ecx, 4
call fcn.0040adf0
mov eax, 1
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0041c203
mov esp, ebp
pop ebp
ret 0x10