Function at 0x413770
Capabilities:
Get disk information
Query environment variable
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42c74b
mov eax, dword fs:[0]
push eax
sub esp, 0x48c
mov eax, dword [0x436a98]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x46c], ecx
push 0
mov ecx, dword [ebp - 0x46c]
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.00403e10
push eax
call dword [sym.imp.USER32.dll_LoadImageW]
mov dword [ebp - 0x20], eax
push 1
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x46c]
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.00403e10
push eax
call dword [sym.imp.USER32.dll_LoadImageW]
mov dword [ebp - 0x230], eax
push 0
mov ecx, dword [ebp - 0x230]
push ecx
mov ecx, dword [ebp - 0x46c]
add ecx, 4
call fcn.00403f30
push 2
push 0
push 0
push 0x2001
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
mov edx, dword [ebp - 0x46c]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
lea ecx, [ebp - 0x440]
call fcn.0040a4b0
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x46c]
add ecx, 0x24
call fcn.00418500
mov dword [ebp - 0x470], eax
lea ecx, [ebp - 0x440]
call fcn.00404f50
push eax
push 0xab
mov ecx, dword [ebp - 0x470]
push ecx
mov edx, dword [ebp - 0x470]
mov eax, dword [edx]
mov ecx, dword [eax + 0x14]
call ecx
lea ecx, [ebp - 0x440]
call fcn.00418500
push eax
mov ecx, dword [ebp - 0x46c]
add ecx, 4
call fcn.00415620
mov ecx, dword [ebp - 0x46c]
add ecx, 0x24
call fcn.00418500
mov dword [ebp - 0x474], eax
lea ecx, [ebp - 0x440]
call fcn.00404f50
push eax
push 0xac
mov edx, dword [ebp - 0x474]
push edx
mov eax, dword [ebp - 0x474]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x14]
call edx
lea ecx, [ebp - 0x440]
call fcn.00418500
push eax
push 0x3f7
mov ecx, dword [ebp - 0x46c]
add ecx, 4
call fcn.00415690
mov ecx, dword [ebp - 0x46c]
add ecx, 0x24
call fcn.00418500
mov dword [ebp - 0x478], eax
lea ecx, [ebp - 0x440]
call fcn.00404f50
push eax
push 0xad
mov eax, dword [ebp - 0x478]
push eax
mov ecx, dword [ebp - 0x478]
mov edx, dword [ecx]
mov eax, dword [edx + 0x14]
call eax
lea ecx, [ebp - 0x440]
call fcn.00418500
push eax
push 0x3f8
mov ecx, dword [ebp - 0x46c]
add ecx, 4
call fcn.00415690
mov ecx, dword [ebp - 0x46c]
add ecx, 0x24
call fcn.00418500
mov dword [ebp - 0x47c], eax
lea ecx, [ebp - 0x440]
call fcn.00404f50
push eax
push 0xae
mov ecx, dword [ebp - 0x47c]
push ecx
mov edx, dword [ebp - 0x47c]
mov eax, dword [edx]
mov ecx, dword [eax + 0x14]
call ecx
lea ecx, [ebp - 0x440]
call fcn.00418500
push eax
push 0x3fb
mov ecx, dword [ebp - 0x46c]
add ecx, 4
call fcn.00415690
mov ecx, dword [ebp - 0x46c]
add ecx, 0x24
call fcn.00418500
mov dword [ebp - 0x480], eax
lea ecx, [ebp - 0x440]
call fcn.00404f50
push eax
push 0xaf
mov edx, dword [ebp - 0x480]
push edx
mov eax, dword [ebp - 0x480]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x14]
call edx
lea ecx, [ebp - 0x440]
call fcn.00418500
push eax
push 0x3ef
mov ecx, dword [ebp - 0x46c]
add ecx, 4
call fcn.00415690
mov ecx, dword [ebp - 0x46c]
add ecx, 0x24
call fcn.00418500
mov dword [ebp - 0x484], eax
lea ecx, [ebp - 0x440]
call fcn.00404f50
push eax
push 0xb0
mov eax, dword [ebp - 0x484]
push eax
mov ecx, dword [ebp - 0x484]
mov edx, dword [ecx]
mov eax, dword [edx + 0x14]
call eax
lea ecx, [ebp - 0x440]
call fcn.00418500
push eax
push 0x3f1
mov ecx, dword [ebp - 0x46c]
add ecx, 4
call fcn.00415690
mov ecx, dword [ebp - 0x46c]
add ecx, 0x24
call fcn.00418500
mov dword [ebp - 0x488], eax
lea ecx, [ebp - 0x440]
call fcn.00404f50
push eax
push 0xb1
mov ecx, dword [ebp - 0x488]
push ecx
mov edx, dword [ebp - 0x488]
mov eax, dword [edx]
mov ecx, dword [eax + 0x14]
call ecx
lea ecx, [ebp - 0x440]
call fcn.00418500
push eax
push 0x3ee
mov ecx, dword [ebp - 0x46c]
add ecx, 4
call fcn.00415690
mov ecx, dword [ebp - 0x46c]
add ecx, 0x24
call fcn.00418500
mov dword [ebp - 0x48c], eax
lea ecx, [ebp - 0x440]
call fcn.00404f50
push eax
push 0xb2
mov edx, dword [ebp - 0x48c]
push edx
mov eax, dword [ebp - 0x48c]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x14]
call edx
lea ecx, [ebp - 0x440]
call fcn.00418500
push eax
push 0x3f2
mov ecx, dword [ebp - 0x46c]
add ecx, 4
call fcn.00415690
mov ecx, dword [ebp - 0x46c]
add ecx, 0x24
call fcn.00418500
mov dword [ebp - 0x490], eax
lea ecx, [ebp - 0x440]
call fcn.00404f50
push eax
push 0xb3
mov eax, dword [ebp - 0x490]
push eax
mov ecx, dword [ebp - 0x490]
mov edx, dword [ecx]
mov eax, dword [edx + 0x14]
call eax
lea ecx, [ebp - 0x440]
call fcn.00418500
push eax
push 1
mov ecx, dword [ebp - 0x46c]
add ecx, 4
call fcn.00415690
mov ecx, dword [ebp - 0x46c]
add ecx, 0x24
call fcn.00418500
mov dword [ebp - 0x494], eax
lea ecx, [ebp - 0x440]
call fcn.00404f50
push eax
push 0xb4
mov ecx, dword [ebp - 0x494]
push ecx
mov edx, dword [ebp - 0x494]
mov eax, dword [edx]
mov ecx, dword [eax + 0x14]
call ecx
lea ecx, [ebp - 0x440]
call fcn.00418500
push eax
push 2
mov ecx, dword [ebp - 0x46c]
add ecx, 4
call fcn.00415690
mov ecx, dword [ebp - 0x46c]
add ecx, 0x24
call fcn.00418500
mov dword [ebp - 0x498], eax
lea ecx, [ebp - 0x440]
call fcn.00404f50
push eax
push 0xc6
mov edx, dword [ebp - 0x498]
push edx
mov eax, dword [ebp - 0x498]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x14]
call edx
lea ecx, [ebp - 0x440]
call fcn.00418500
push eax
push 0x401
mov ecx, dword [ebp - 0x46c]
add ecx, 4
call fcn.00415690
push 0x3f0
lea eax, [ebp - 0x448]
push eax
mov ecx, dword [ebp - 0x46c]
add ecx, 4
call fcn.00403ed0
mov ecx, eax
call fcn.00418500
push eax
lea ecx, [ebp - 0x10]
call fcn.004154b0
mov ecx, dword [0x42e518]
mov dword [ebp - 0x1c], ecx
mov edx, dword [0x42e51c]
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x444], 0x41
jmp 0x413c84
mov eax, dword [ebp - 0x444]
add eax, 1
mov dword [ebp - 0x444], eax
cmp dword [ebp - 0x444], 0x5a
jg 0x413cbf
mov cx, word [ebp - 0x444]
mov word [ebp - 0x1c], cx
lea edx, [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jne 0x413cbd
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x1c]
push eax
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
call fcn.004154d0
jmp 0x413c75
mov ecx, dword [ebp - 0x46c]
add ecx, 0x30
call fcn.00409690
test eax, eax
je 0x413cf2
push 0
push 0
push 0
push 0
mov ecx, dword [ebp - 0x46c]
add ecx, 0x30
call fcn.00418500
push eax
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
call fcn.004154d0
lea ecx, [ebp - 0x10]
call fcn.00415410
sub eax, 1
push eax
lea ecx, [ebp - 0x10]
call fcn.00415450
mov ecx, dword [ebp - 0x46c]
add ecx, 0x2c
call fcn.00409690
test eax, eax
je 0x413dea
mov ecx, dword [ebp - 0x46c]
add ecx, 0x2c
call fcn.00418500
push eax
push 0x3ed
mov ecx, dword [ebp - 0x46c]
add ecx, 4
call fcn.00415690
mov ecx, dword [ebp - 0x46c]
add ecx, 0x2c
call fcn.00418500
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x413db2
push 1
push 0x3f8
lea ecx, [ebp - 0x450]
push ecx
mov ecx, dword [ebp - 0x46c]
add ecx, 4
call fcn.00403ed0
mov ecx, eax
call fcn.00418500
push eax
lea ecx, [ebp - 0x44c]
call fcn.004155a0
mov ecx, eax
call fcn.00415570
push 0
push 0x401
lea edx, [ebp - 0x454]
push edx
mov ecx, dword [ebp - 0x46c]
add ecx, 4
call fcn.00403ed0
mov ecx, eax
call fcn.0040ae60
jmp 0x413de8
push 1
push 0x3f7
lea eax, [ebp - 0x45c]
push eax
mov ecx, dword [ebp - 0x46c]
add ecx, 4
call fcn.00403ed0
mov ecx, eax
call fcn.00418500
push eax
lea ecx, [ebp - 0x458]
call fcn.004155a0
mov ecx, eax
call fcn.00415570
jmp 0x413e20
push 1
push 0x3f7
lea ecx, [ebp - 0x464]
push ecx
mov ecx, dword [ebp - 0x46c]
add ecx, 4
call fcn.00403ed0
mov ecx, eax
call fcn.00418500
push eax
lea ecx, [ebp - 0x460]
call fcn.004155a0
mov ecx, eax
call fcn.00415570
mov ecx, dword [ebp - 0x46c]
add ecx, 0x30
call fcn.00409690
test eax, eax
je 0x413e54
mov ecx, dword [ebp - 0x46c]
add ecx, 0x30
call fcn.00418500
push eax
push 0x3f0
mov ecx, dword [ebp - 0x46c]
add ecx, 4
call fcn.00415690
lea ecx, [ebp - 0x10]
call fcn.00403e60
xor edx, edx
mov word [ebp - 0x22c], dx
push 0x206
push 0
lea eax, [ebp - 0x22a]
push eax
call fcn.0041c220
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x22c]
push ecx
push 0x42e520
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
xor edx, edx
mov word [ebp - 0x43c], dx
push 0x206
push 0
lea eax, [ebp - 0x43a]
push eax
call fcn.0041c220
add esp, 0xc
lea ecx, [ebp - 0x22c]
push ecx
push 0x104
lea edx, [ebp - 0x43c]
push edx
call fcn.0041bdae
add esp, 0xc
push 0x42e544
lea eax, [ebp - 0x43c]
push eax
call fcn.00403be0
add esp, 8
lea ecx, [ebp - 0x43c]
push ecx
push 0
push 0x42e560
push 0x42e574
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push eax
push 0x3fb
mov ecx, dword [ebp - 0x46c]
add ecx, 4
call fcn.00403e80
mov dword [ebp - 0x468], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x440]
call fcn.00403df0
mov eax, dword [ebp - 0x468]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0041c203
mov esp, ebp
pop ebp
ret 0xc