Function at 0x417580
Capabilities:
Query environment variable

Disassembly:
jmp 0x417580
push 0xffffffffffffffff
push 0x54af12
mov eax, dword fs:[0]
push eax
sub esp, 0x230
mov eax, dword [0x5c1d10]
xor eax, esp
mov dword [esp + 0x22c], eax
push ebp
push esi
push edi
mov eax, dword [0x5c1d10]
xor eax, esp
push eax
lea eax, [esp + 0x240]
mov dword fs:[0], eax
mov esi, dword [esp + 0x250]
mov dword [esp + 0x2c], esi
mov dword [esp + 0x28], 0
mov dword [esp + 0x248], 1
lea ecx, [esp + 0x24]
call fcn.00404bc4
mov byte [esp + 0x248], 2
lea eax, [esp + 0x254]
push eax
lea ecx, [esp + 0x14]
call fcn.004015fa
mov byte [esp + 0x248], 3
lea ecx, [esp + 0x10]
call fcn.0040457f
mov eax, dword [esp + 0x10]
cmp dword [eax - 0xc], 0
jl 0x417630
push str..lnk
push eax
call fcn.004f52ae
add esp, 8
test eax, eax
je 0x417630
sub eax, dword [esp + 0x10]
cmp eax, 0xffffffff
jne 0x417649
push 0x562e4c
mov ecx, esi
call fcn.00404133
mov dword [esp + 0x28], 1
jmp 0x417a2e
lea ecx, [esp + 0x254]
push ecx
lea ecx, [esp + 0x28]
call fcn.00402432
lea ecx, [esp + 0x30]
call fcn.00404bc4
mov byte [esp + 0x248], 4
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx - 0xc]
test eax, eax
jge 0x41767b
or eax, 0xffffffff
jmp 0x417698
push 0x564e54
push ecx
call fcn.004f52ae
mov ecx, dword [esp + 0x18]
add esp, 8
test eax, eax
jne 0x417696
or eax, 0xffffffff
jmp 0x417698
sub eax, ecx
lea esi, [eax + 1]
test esi, esi
mov eax, dword [ecx - 0xc]
jl 0x4176c9
cmp esi, eax
jg 0x4176c9
lea edx, [esi + ecx]
push 0x564e54
push edx
call fcn.004f52ae
mov ecx, dword [esp + 0x18]
add esp, 8
test eax, eax
je 0x4176c9
sub eax, ecx
test eax, eax
je 0x417767
test esi, esi
mov edi, dword [ecx - 0xc]
jl 0x4176f3
cmp esi, edi
jg 0x4176f3
lea eax, [esi + ecx]
push 0x564e54
push eax
call fcn.004f52ae
mov ecx, dword [esp + 0x18]
add esp, 8
test eax, eax
je 0x4176f3
sub eax, ecx
mov ebp, eax
jmp 0x4176f6
or ebp, 0xffffffff
test esi, esi
mov eax, dword [ecx - 0xc]
jl 0x41771b
cmp esi, eax
jg 0x41771b
add esi, ecx
push 0x564e54
push esi
call fcn.004f52ae
add esp, 8
test eax, eax
je 0x41771b
sub eax, dword [esp + 0x10]
jmp 0x41771e
or eax, 0xffffffff
sub edi, ebp
add edi, 1
push edi
add eax, 0xffffffff
push eax
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x1c]
call fcn.00402ce3
mov byte [esp + 0x248], 5
push eax
lea ecx, [esp + 0x14]
call fcn.00402432
mov byte [esp + 0x248], 4
lea ecx, [esp + 0x14]
call fcn.00402798
lea edx, [esp + 0x10]
push edx
lea ecx, [esp + 0x28]
call fcn.00402432
lea ecx, [esp + 0x18]
call fcn.00404bc4
mov byte [esp + 0x248], 6
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [esp + 0x20]
push eax
push 0x5906ec
push 1
push 0
push 0x592ccc
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x417853
mov eax, dword [esp + 0x20]
mov ecx, dword [eax]
lea edx, [esp + 0x14]
push edx
push 0x591b8c
push eax
mov eax, dword [ecx]
call eax
test eax, eax
jl 0x417853
mov edx, dword [esp + 0x24]
push 0x104
lea ecx, [esp + 0x38]
push ecx
push 0xffffffffffffffff
push edx
push 1
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
push 0
lea edx, [esp + 0x38]
push edx
push eax
mov eax, dword [ecx + 0x14]
call eax
test eax, eax
jl 0x417853
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call fcn.004bb345
mov ecx, dword [esp + 0x20]
mov eax, dword [eax + 0x20]
mov edx, dword [ecx]
push 7
push eax
push ecx
mov ecx, dword [edx + 0x4c]
call ecx
test eax, eax
jl 0x417853
mov edx, dword [esp + 0x20]
mov esi, dword [edx]
push 2
push 0
push 0x400
push 0x400
lea ecx, [esp + 0x20]
call fcn.00401fe1
mov ecx, dword [esi + 0xc]
push eax
mov eax, dword [esp + 0x30]
push eax
call ecx
push 0xffffffffffffffff
lea ecx, [esp + 0x14]
call fcn.004035fd
lea edx, [esp + 0x10]
push edx
lea ecx, [esp + 0x1c]
call fcn.00402432
mov eax, dword [esp + 0x20]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, dword [esp + 0x18]
push 0
push eax
call fcn.004f64ad
add esp, 8
cmp eax, 0xffffffff
jne 0x417985
call fcn.00403940
test eax, eax
je 0x417985
lea ecx, [esp + 0x14]
call fcn.00404bc4
mov byte [esp + 0x248], 7
lea ecx, [esp + 0x1c]
call fcn.00404bc4
mov byte [esp + 0x248], 8
mov edx, dword [esp + 0x14]
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
sub eax, 0x104
or eax, ecx
jge 0x4178d6
push 0x104
lea ecx, [esp + 0x18]
call fcn.00403094
mov edx, dword [esp + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
push 0x104
push edx
push str._ProgramFiles_
call esi
mov edx, dword [esp + 0x1c]
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
sub eax, 0x104
or eax, ecx
jge 0x417913
push 0x104
lea ecx, [esp + 0x20]
call fcn.00403094
mov edx, dword [esp + 0x1c]
push 0x104
push edx
push str._ProgramW6432_
call esi
mov ecx, dword [esp + 0x1c]
xor eax, eax
test ecx, ecx
setne al
test eax, eax
jne 0x417939
push 0x80004005
call fcn.004027b1
push ecx
mov ecx, dword [esp + 0x18]
push ecx
call fcn.004f4ac1
add esp, 8
test eax, eax
setne al
test al, al
je 0x417963
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
push edx
push eax
lea ecx, [esp + 0x20]
call fcn.004033aa
mov byte [esp + 0x248], 7
lea ecx, [esp + 0x1c]
call fcn.00402798
mov byte [esp + 0x248], 6
lea ecx, [esp + 0x14]
call fcn.00402798
mov ecx, dword [esp + 0x18]
push 0
push ecx
call fcn.004f64ad
add esp, 8
cmp eax, 0xffffffff
jne 0x4179f4
mov eax, dword [esp + 0x18]
cmp dword [eax - 0xc], 0
jl 0x4179f4
push 0x563ac0
push eax
call fcn.004f52ae
add esp, 8
test eax, eax
je 0x4179f4
sub eax, dword [esp + 0x18]
test eax, eax
jle 0x4179f4
add eax, 4
push eax
push 0
lea edx, [esp + 0x1c]
push edx
lea ecx, [esp + 0x24]
call fcn.00402ce3
mov byte [esp + 0x248], 9
push eax
lea ecx, [esp + 0x1c]
call fcn.00402432
mov byte [esp + 0x248], 6
lea ecx, [esp + 0x14]
call fcn.00402798
mov esi, dword [esp + 0x2c]
lea eax, [esp + 0x18]
push eax
mov ecx, esi
call fcn.004015fa
mov dword [esp + 0x28], 1
mov byte [esp + 0x248], 4
lea ecx, [esp + 0x18]
call fcn.00402798
mov byte [esp + 0x248], 3
lea ecx, [esp + 0x30]
call fcn.00402798
mov byte [esp + 0x248], 2
lea ecx, [esp + 0x10]
call fcn.00402798
mov byte [esp + 0x248], 1
lea ecx, [esp + 0x24]
call fcn.00402798
mov byte [esp + 0x248], 0
lea ecx, [esp + 0x254]
call fcn.00402798
mov eax, esi
mov ecx, dword [esp + 0x240]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x22c]
xor ecx, esp
call fcn.004f409d
add esp, 0x23c
ret 8