Function at 0x45b110
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dae36
mov eax, dword fs:[0]
push eax
sub esp, 0x298
mov eax, dword [0x50f52c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x228]
push eax
push str.path
push edi
call fcn.00457300
mov edx, dword [ebp - 0x220]
mov eax, edx
lea ecx, [eax + 2]
mov dword [ebp - 0x298], ecx
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x45b170
sub eax, dword [ebp - 0x298]
mov ecx, esi
sar eax, 1
push eax
push edx
call fcn.00401860
lea eax, [esi + 0x1c]
push eax
push str.arch64
push edi
mov ecx, ebx
mov dword [ebp - 0x29c], eax
call fcn.00459370
lea edx, [esi + 0x20]
push edx
push str.system
push edi
mov ecx, ebx
call fcn.00459370
mov eax, dword [esi + 0x14]
push 9
push str._REGISTRY
push eax
push 0
mov ecx, esi
call fcn.00401fe0
test eax, eax
jne 0x45b36e
mov ecx, dword [edi]
lea edx, [ebp - 0x298]
push edx
mov dword [ebp - 0x298], eax
mov eax, dword [ecx + 0x30]
push edi
call eax
test eax, eax
jge 0x45b204
push 0x4fd428
lea ecx, [ebp - 0x294]
push ecx
mov dword [ebp - 0x294], str.get_childNodes_failed
call fcn.004b3137
mov eax, dword [ebp - 0x298]
mov edx, dword [eax]
mov edx, dword [edx + 0x20]
lea ecx, [ebp - 0x2a4]
push ecx
push eax
call edx
test eax, eax
jge 0x45b238
push 0x4fd428
lea eax, [ebp - 0x294]
push eax
mov dword [ebp - 0x294], str.get_length_failed
call fcn.004b3137
cmp dword [ebp - 0x2a4], 1
jne 0x45b35c
mov eax, dword [ebp - 0x298]
lea edx, [ebp - 0x294]
push edx
xor edi, edi
mov dword [ebp - 0x294], edi
mov ecx, dword [eax]
push edi
push eax
mov eax, dword [ecx + 0x1c]
call eax
test eax, eax
jge 0x45b282
push 0x4fd428
lea ecx, [ebp - 0x29c]
push ecx
mov dword [ebp - 0x29c], str.get_item_failed
call fcn.004b3137
mov eax, dword [ebp - 0x294]
mov edx, dword [eax]
mov edx, dword [edx + 0xa4]
lea ecx, [ebp - 0x2a0]
push ecx
push eax
call edx
test eax, eax
jge 0x45b2b9
push 0x4fd428
lea eax, [ebp - 0x29c]
push eax
mov dword [ebp - 0x29c], str.get_baseName_failed
call fcn.004b3137
mov ecx, dword [ebp - 0x2a0]
push ecx
lea ecx, [ebp - 0x234]
call fcn.004019e0
mov dword [ebp - 4], edi
lea edx, [ebp - 0x234]
push str.Registry
push edx
call fcn.00402330
add esp, 8
test al, al
je 0x45b332
lea ecx, [ebp - 0x290]
call fcn.00433f10
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x294]
lea eax, [ebp - 0x290]
push eax
push ecx
mov ecx, ebx
call fcn.0045ab70
lea ecx, [ebp - 0x290]
call fcn.00433f80
mov edx, dword [ebp - 0x24c]
push edx
mov ecx, esi
call fcn.00409f50
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x290]
call fcn.00402470
mov eax, dword [ebp - 0x294]
cmp eax, edi
je 0x45b34a
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [ebp - 0x294], edi
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x234]
call fcn.00490320
mov eax, dword [ebp - 0x298]
test eax, eax
je 0x45b36e
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x216]
push ecx
mov word [ebp - 0x218], ax
call fcn.004b32f0
mov edi, dword [ebp - 0x29c]
add esp, 0xc
cmp dword [edi], 0
je 0x45b39c
call fcn.00427480
cmp dword [esi + 0x18], 8
jb 0x45b3a7
mov eax, dword [esi + 4]
jmp 0x45b3aa
lea eax, [esi + 4]
push 0x104
lea edx, [ebp - 0x218]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [ebp - 0x218]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x45b3c6
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x218]
push eax
mov ecx, esi
call fcn.00401860
cmp dword [edi], 0
je 0x45b3ee
call fcn.004260e0
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b3057
mov esp, ebp
pop ebp
ret 8