Function at 0x413470
Capabilities:
Query environment variable
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x848
mov eax, dword [0x42c6a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x848], ecx
push 0
mov ecx, dword [ebp - 0x848]
add ecx, 4
call fcn.004011d0
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, 0x42d960
call fcn.004027c0
push eax
call dword [sym.imp.USER32.dll_LoadImageW]
mov dword [ebp - 0x218], eax
push 1
mov eax, dword [ebp - 0x218]
push eax
mov ecx, dword [ebp - 0x848]
add ecx, 4
call fcn.004028e0
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, 0x42d960
call fcn.004027c0
push eax
call dword [sym.imp.USER32.dll_LoadImageW]
mov dword [ebp - 0x424], eax
push 0
mov ecx, dword [ebp - 0x424]
push ecx
mov ecx, dword [ebp - 0x848]
add ecx, 4
call fcn.004028e0
push 2
push 0
push 0
push 0x2001
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
mov edx, dword [ebp - 0x848]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push 0xe7
push 0
mov ecx, dword [ebp - 0x848]
call fcn.004133f0
push pe_nt_image_headers32
push 0x3f5
mov ecx, dword [ebp - 0x848]
call fcn.004133f0
push 0xe9
push 0x3f4
mov ecx, dword [ebp - 0x848]
call fcn.004133f0
push 0xea
push 0x3fb
mov ecx, dword [ebp - 0x848]
call fcn.004133f0
push 0xeb
push 0x413
mov ecx, dword [ebp - 0x848]
call fcn.004133f0
push 0xf5
push 0x414
mov ecx, dword [ebp - 0x848]
call fcn.004133f0
push 0xec
push 1
mov ecx, dword [ebp - 0x848]
call fcn.004133f0
push 0xed
push 2
mov ecx, dword [ebp - 0x848]
call fcn.004133f0
push 0xee
push 0x3f6
mov ecx, dword [ebp - 0x848]
call fcn.004133f0
push 0xef
push 0x3f9
mov ecx, dword [ebp - 0x848]
call fcn.004133f0
push 0xf2
push 0x40d
mov ecx, dword [ebp - 0x848]
call fcn.004133f0
push 0xf3
push 0x44c
mov ecx, dword [ebp - 0x848]
call fcn.004133f0
push 0xf4
push 0x44d
mov ecx, dword [ebp - 0x848]
call fcn.004133f0
xor ecx, ecx
mov word [ebp - 0x838], cx
push 0x206
push 0
lea edx, [ebp - 0x836]
push edx
call fcn.00417120
add esp, 0xc
push 0x104
lea eax, [ebp - 0x838]
push eax
push 0x426700
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea ecx, [ebp - 0x838]
push ecx
push 0x3f3
mov ecx, dword [ebp - 0x848]
add ecx, 4
call fcn.00401170
xor edx, edx
mov word [ebp - 0x420], dx
push 0x206
push 0
lea eax, [ebp - 0x41e]
push eax
call fcn.00417120
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x420]
push ecx
push 0x426728
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
xor edx, edx
mov word [ebp - 0x630], dx
push 0x206
push 0
lea eax, [ebp - 0x62e]
push eax
call fcn.00417120
add esp, 0xc
lea ecx, [ebp - 0x420]
push ecx
push 0x104
lea edx, [ebp - 0x630]
push edx
call fcn.004170a0
add esp, 0xc
push 0x426750
lea eax, [ebp - 0x630]
push eax
call fcn.004027a0
add esp, 8
lea ecx, [ebp - 0x630]
push ecx
push 0
push 0x426774
push 0x426788
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push eax
push 0x3fb
mov ecx, dword [ebp - 0x848]
add ecx, 4
call fcn.00402830
lea edx, [ebp - 0x630]
push edx
push 0
push 0x4267a4
push 0x4267cc
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push eax
push 0x414
mov ecx, dword [ebp - 0x848]
add ecx, 4
call fcn.00402830
xor eax, eax
mov word [ebp - 0x210], ax
push 0x206
push 0
lea ecx, [ebp - 0x20e]
push ecx
call fcn.00417120
add esp, 0xc
push 0x104
lea edx, [ebp - 0x210]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x4267e8
push 0x5c
lea eax, [ebp - 0x210]
push eax
call fcn.00409050
add esp, 8
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
mov ecx, dword [ebp - 0x848]
add ecx, 0x28
call fcn.004098f0
mov ecx, dword [ebp - 0x848]
add ecx, 0x28
call fcn.004098b0
test eax, eax
je 0x413843
push 0x426814
mov ecx, dword [ebp - 0x848]
add ecx, 0x28
call fcn.00409d40
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x83c], eax
cmp dword [ebp - 0x83c], 0
je 0x413843
call dword [ebp - 0x83c]
push eax
push 0x413
mov ecx, dword [ebp - 0x848]
add ecx, 4
call fcn.00402830
lea ecx, [ebp - 0x214]
call fcn.00416120
mov dword [ebp - 0x840], 0
jmp 0x413869
mov edx, dword [ebp - 0x840]
add edx, 1
mov dword [ebp - 0x840], edx
cmp dword [ebp - 0x840], 0xc
jae 0x4138d2
mov eax, dword [ebp - 0x840]
imul eax, eax, 0x18
mov ecx, dword [ebp - 0x848]
lea edx, [ecx + eax + 0x34]
push edx
lea ecx, [ebp - 0x214]
call fcn.00416ba0
test eax, eax
je 0x4138d0
mov eax, dword [ebp - 0x840]
imul eax, eax, 0x18
mov ecx, dword [ebp - 0x848]
mov dword [ecx + eax + 0x44], 1
push 1
mov edx, dword [ebp - 0x840]
imul edx, edx, 0x18
mov eax, dword [ebp - 0x848]
mov ecx, dword [eax + edx + 0x30]
push ecx
mov ecx, dword [ebp - 0x848]
add ecx, 4
call fcn.00402830
jmp 0x41385a
mov dword [ebp - 0x844], 1
lea ecx, [ebp - 0x214]
call fcn.00416140
mov eax, dword [ebp - 0x844]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041710f
mov esp, ebp
pop ebp
ret 0xc