Function at 0x450d50
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4556af
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x134
mov eax, dword [0x4645c8]
xor eax, ebp
mov dword [ebp - 0x28], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x48], 1
mov dword [ebp - 0x4c], 0
lea ecx, [ebp - 0x44]
call fcn.004014d0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x24]
call fcn.00405ac0
mov byte [ebp - 4], 1
cmp dword [ebp + 8], 0
je 0x450dbb
mov eax, dword [ebp + 8]
movzx ecx, word [eax]
test ecx, ecx
jne 0x450deb
mov dword [ebp - 0xec], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x24]
call fcn.00405af0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call fcn.00401540
mov eax, dword [ebp - 0xec]
jmp 0x451318
push 0
call fcn.00451340
add esp, 4
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x450e08
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
mov byte [ebp - 4], 2
push 0
push 0x208
lea ecx, [ebp - 0x24]
call fcn.00405b10
lea ecx, [ebp - 0x24]
call fcn.00405bb0
push eax
push 0
lea ecx, [ebp - 0x24]
call fcn.00405bf0
push eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push 0
lea ecx, [ebp - 0x24]
call fcn.00405bf0
push eax
lea ecx, [ebp - 0x44]
call fcn.00401580
jmp 0x450e61
mov dword [ebp - 4], 1
jmp 0x450e6f
mov byte [ebp - 4], 4
mov ecx, dword [0x45d910]
mov dword [ebp - 0x54], ecx
mov edx, dword [0x45d910]
mov dword [ebp - 0x50], edx
mov dword [ebp - 0x50], 0
mov eax, 1
test eax, eax
je 0x450f06
push 0
push 0x22
lea ecx, [ebp - 0x44]
call fcn.00405a80
mov dword [ebp - 0x54], eax
mov ecx, dword [ebp - 0x54]
mov dword [ebp - 0x50], ecx
mov edx, dword [ebp - 0x54]
cmp edx, dword [0x45d910]
je 0x450ec5
lea ecx, [ebp - 0x44]
call fcn.00404eb0
sub eax, 1
cmp dword [ebp - 0x54], eax
jne 0x450ec7
jmp 0x450f06
mov eax, dword [ebp - 0x50]
add eax, 1
push eax
push 0x22
lea ecx, [ebp - 0x44]
call fcn.00405a80
mov dword [ebp - 0x54], eax
mov ecx, dword [ebp - 0x54]
cmp ecx, dword [0x45d910]
jne 0x450ee8
jmp 0x450f06
push 1
mov edx, dword [ebp - 0x54]
push edx
lea ecx, [ebp - 0x44]
call fcn.00402d00
push 1
mov eax, dword [ebp - 0x50]
push eax
lea ecx, [ebp - 0x44]
call fcn.00402d00
jmp 0x450e8c
jmp 0x450f15
mov dword [ebp - 4], 1
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x24]
call fcn.00405bb0
shl eax, 1
push eax
push 0
push 0
lea ecx, [ebp - 0x24]
call fcn.00405bf0
push eax
call fcn.0042a350
add esp, 0xc
lea ecx, [ebp - 0x24]
call fcn.00405bb0
push eax
push 0
lea ecx, [ebp - 0x24]
call fcn.00405bf0
push eax
lea ecx, [ebp - 0x44]
call fcn.004015d0
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
mov dword [ebp - 0x4c], eax
lea ecx, [ebp - 0x24]
call fcn.00405bb0
cmp dword [ebp - 0x4c], eax
jbe 0x450faa
push 0
mov ecx, dword [ebp - 0x4c]
add ecx, 1
push ecx
lea ecx, [ebp - 0x24]
call fcn.00405b10
lea ecx, [ebp - 0x24]
call fcn.00405bb0
push eax
push 0
lea ecx, [ebp - 0x24]
call fcn.00405bf0
push eax
lea ecx, [ebp - 0x44]
call fcn.004015d0
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0
je 0x450fd0
lea ecx, [ebp - 0x24]
call fcn.00405bb0
cmp dword [ebp - 0x4c], eax
jae 0x450fd0
push 0
lea ecx, [ebp - 0x24]
call fcn.00405bf0
push eax
lea ecx, [ebp - 0x44]
call fcn.00401580
jmp 0x450fe5
mov dword [ebp - 4], 1
jmp 0x450ff3
mov byte [ebp - 4], 8
push 0
lea ecx, [ebp - 0x44]
call fcn.00404eb0
add eax, 1
push eax
lea ecx, [ebp - 0x24]
call fcn.00405b10
lea ecx, [ebp - 0x24]
call fcn.00405bb0
shl eax, 1
push eax
push 0
push 0
lea ecx, [ebp - 0x24]
call fcn.00405bf0
push eax
call fcn.0042a350
add esp, 0xc
lea ecx, [ebp - 0x44]
call fcn.004015d0
push eax
push 0
lea ecx, [ebp - 0x24]
call fcn.00405bf0
push eax
call fcn.0042ac90
add esp, 8
push 0
lea ecx, [ebp - 0x24]
call fcn.00405bf0
push eax
call dword [sym.imp.USER32.dll_CharLowerW]
push 0
lea ecx, [ebp - 0x24]
call fcn.00405bf0
push eax
lea ecx, [ebp - 0x44]
call fcn.00401580
jmp 0x451082
mov dword [ebp - 4], 1
jmp 0x451090
mov byte [ebp - 4], 0xa
push 1
push 3
lea ecx, [ebp - 0xe0]
call fcn.00405c40
mov dword [ebp - 0x12c], eax
mov byte [ebp - 4], 0xb
mov edx, dword [0x45d910]
mov dword [ebp - 0xe8], edx
mov eax, dword [0x45d910]
mov dword [ebp - 0xe4], eax
lea ecx, [ebp - 0x44]
push ecx
call fcn.0044f790
add esp, 4
mov dword [ebp - 0xe4], 0
mov edx, 1
test edx, edx
je 0x451296
mov eax, dword [ebp - 0xe4]
push eax
push 0x20
lea ecx, [ebp - 0x44]
call fcn.00405a80
mov dword [ebp - 0xe8], eax
mov ecx, dword [ebp - 0xe8]
cmp ecx, dword [0x45d910]
jne 0x451111
jmp 0x451296
lea ecx, [ebp - 0x44]
call fcn.00404eb0
mov edx, dword [ebp - 0xe8]
add edx, 1
cmp edx, eax
jne 0x451136
lea ecx, [ebp - 0x44]
call fcn.00404eb0
mov dword [ebp - 0xe4], eax
jmp 0x451150
mov eax, dword [ebp - 0xe8]
add eax, 1
push eax
push 0x20
lea ecx, [ebp - 0x44]
call fcn.00405aa0
mov dword [ebp - 0xe4], eax
mov ecx, dword [ebp - 0xe4]
cmp ecx, dword [0x45d910]
jne 0x45116c
lea ecx, [ebp - 0x44]
call fcn.00404eb0
mov dword [ebp - 0xe4], eax
mov edx, dword [ebp - 0xe4]
sub edx, dword [ebp - 0xe8]
cmp edx, 4
jbe 0x451291
push 0x45d6e0
lea ecx, [ebp - 0x108]
call fcn.00401500
mov dword [ebp - 0x130], eax
mov byte [ebp - 4], 0xc
lea eax, [ebp - 0x108]
push eax
lea ecx, [ebp - 0xe0]
call fcn.00405db0
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x108]
call fcn.00401540
lea ecx, [ebp - 0xe0]
test ecx, ecx
je 0x4511d4
lea edx, [ebp - 0xd8]
mov dword [ebp - 0x134], edx
jmp 0x4511de
mov dword [ebp - 0x134], 0
push 0x45d6e4
mov eax, dword [ebp - 0x134]
push eax
call fcn.0040b120
add esp, 8
mov dword [ebp - 0x138], eax
mov ecx, dword [ebp - 0xe4]
sub ecx, dword [ebp - 0xe8]
push ecx
mov ecx, dword [ebp - 0x138]
call fcn.00405160
mov dword [ebp - 0x13c], eax
push 0x4050a0
mov ecx, dword [ebp - 0x13c]
call fcn.00405140
lea edx, [ebp - 0x124]
push edx
lea ecx, [ebp - 0xe0]
call fcn.00405d70
mov dword [ebp - 0x140], eax
mov eax, dword [ebp - 0x140]
mov dword [ebp - 0x144], eax
mov byte [ebp - 4], 0xd
mov ecx, dword [ebp - 0x144]
call fcn.004015d0
push eax
mov ecx, dword [ebp - 0xe4]
sub ecx, dword [ebp - 0xe8]
push ecx
mov edx, dword [ebp - 0xe8]
push edx
lea ecx, [ebp - 0x44]
call fcn.004059f0
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x124]
call fcn.00401540
mov eax, dword [ebp - 0xe8]
mov dword [ebp - 0xe4], eax
jmp 0x4510da
lea ecx, [ebp - 0x44]
push ecx
mov ecx, dword [ebp + 0xc]
call fcn.00401560
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0xe0]
call fcn.004050c0
jmp 0x4512c6
mov dword [ebp - 4], 1
jmp 0x4512d1
mov dword [ebp - 0x48], 0
cmp dword [ebp - 0x14], 0
je 0x4512ee
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x128], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x24]
call fcn.00405af0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call fcn.00401540
mov eax, dword [ebp - 0x128]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x28]
xor ecx, ebp
call fcn.0042a8b5
mov esp, ebp
pop ebp
ret