Function at 0x48ca50
Capabilities:
Query environment variable
Query or enumerate registry value
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x5d077c
mov eax, dword fs:[0]
push eax
sub esp, 0x250
mov eax, dword [0x694114]
xor eax, esp
mov dword [esp + 0x24c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x694114]
xor eax, esp
push eax
lea eax, [esp + 0x264]
mov dword fs:[0], eax
mov eax, dword [esp + 0x274]
mov esi, dword [esp + 0x278]
xor ebx, ebx
push ebx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], eax
mov dword [esp + 0x1c], ebx
call fcn.00488800
test al, al
je 0x48cfd6
mov eax, dword [esp + 0x20]
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
cmp dword [eax + 0x10], ebx
jne 0x48caca
xor eax, eax
jmp 0x48cad2
cmp dword [eax + 0x14], 8
jb 0x48cad2
mov eax, dword [eax]
mov edi, dword [esp + 0x1c]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [esp + 0x28]
push ecx
push ebx
lea edx, [esp + 0x2c]
push edx
push ebx
push eax
mov eax, dword [edi]
push eax
call ebp
mov dword [edi + 0x34], eax
cmp eax, ebx
jne 0x48cfd6
mov eax, dword [esp + 0x24]
mov edi, 1
cmp eax, edi
je 0x48ce6a
cmp eax, 2
je 0x48ce6a
xor al, al
lea ebp, [edi + 6]
cmp al, bl
jne 0x48cb75
lea ecx, [esp + 0x11c]
push 0x5fcf00
push ecx
call fcn.00423280
add esp, 8
mov esi, eax
or dword [esp + 0x18], edi
mov dword [esp + 0x26c], ebx
cmp dword [0x695aa8], ebx
je 0x48cb5a
call sub.KERNEL32.dll_GetCurrentThreadId
cmp eax, dword [0x695aa8]
je 0x48cb5a
call fcn.004443b0
jmp 0x48cb5f
mov al, byte [0x68a580]
cmp al, bl
je 0x48cb75
push esi
call fcn.00445fa0
add esp, 4
mov byte [esp + 0x17], 1
cmp eax, edi
jae 0x48cb79
mov byte [esp + 0x17], bl
test byte [esp + 0x18], 1
mov dword [esp + 0x26c], 0xffffffff
je 0x48cbba
mov edx, dword [esp + 0x138]
and dword [esp + 0x18], 0xfffffffe
push edx
call fcn.005844d1
add esp, 4
cmp dword [esp + 0x130], 8
jb 0x48cbba
mov eax, dword [esp + 0x11c]
push eax
call fcn.00584768
add esp, 4
cmp byte [esp + 0x17], bl
je 0x48d5d9
push str.Registry_value___s__is_not_text__but_of_type__s_
lea ecx, [esp + 0x120]
call fcn.00402bb0
xor ecx, ecx
mov dword [esp + 0x26c], edi
mov dword [esp + 0xa0], ebp
mov dword [esp + 0x9c], ebx
mov word [esp + 0x8c], cx
mov dword [esp + 0xa8], ebx
mov dword [esp + 0xac], ebx
xor edx, edx
mov dword [esp + 0x7c], ebp
mov dword [esp + 0x78], ebx
mov word [esp + 0x68], dx
mov dword [esp + 0x84], ebx
mov dword [esp + 0x88], ebx
mov byte [esp + 0x26c], 3
call fcn.00425e70
cmp eax, ebx
je 0x48cc50
lea ecx, [esp + 0x8c]
push ecx
lea edx, [esp + 0x6c]
push edx
lea ecx, [esp + 0x124]
push ecx
mov ecx, eax
call fcn.00429320
cmp eax, ebx
jne 0x48cc60
lea edx, [esp + 0x11c]
push edx
call fcn.004292f0
add esp, 4
mov esi, eax
call fcn.00420510
mov dword [esp + 0x40], eax
mov byte [esp + 0x26c], 4
call fcn.00420510
mov dword [esp + 0x44], eax
mov byte [esp + 0x26c], 5
call fcn.00420510
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], esi
mov dword [esp + 0x50], ebx
mov eax, dword [esp + 0x24]
sub esp, 0x24
mov esi, esp
mov dword [esp + 0x60], esp
push eax
mov byte [esp + 0x294], 6
call fcn.004864b0
mov edi, dword [esp + 0x48]
sub esp, 0x20
mov ecx, esp
mov dword [esp + 0x74], esp
push ecx
mov ecx, dword [esp + 0x68]
mov byte [esp + 0x2b8], 7
call fcn.00486fd0
add esp, 4
mov byte [esp + 0x2b4], 8
mov dword [esp + 0x250], 1
mov dword [esp + 0x258], str....._srcmsw_registry.cpp
mov dword [esp + 0x260], str.wxRegKey::QueryValue
mov dword [esp + 0x25c], 0x412
mov dword [esp + 0x264], 0x5fcf00
mov dword [esp + 0x268], ebx
mov dword [esp + 0x26c], ebx
mov dword [esp + 0x270], ebx
mov dword [esp + 0x274], ebx
call sub.KERNEL32.dll_GetCurrentThreadId
xor edx, edx
mov dword [esp + 0x278], eax
mov dword [esp + 0x27c], ebx
mov dword [esp + 0x294], ebp
mov dword [esp + 0x290], ebx
mov word [esp + 0x280], dx
mov dword [esp + 0x29c], ebx
mov dword [esp + 0x2a0], ebx
mov byte [esp + 0x2b4], 9
lea eax, [esp + 0x88]
push eax
lea ecx, [esp + 0x254]
mov byte [esp + 0x2b8], 0xa
call fcn.00428490
lea ecx, [esp + 0x208]
mov byte [esp + 0x26c], 6
call fcn.0040e140
lea ecx, [esp + 0x40]
mov byte [esp + 0x26c], 3
call fcn.004020c0
mov ecx, dword [esp + 0x84]
push ecx
call fcn.005844d1
mov esi, 8
add esp, 4
cmp dword [esp + 0x7c], esi
jb 0x48cdd7
mov edx, dword [esp + 0x68]
push edx
call fcn.00584768
add esp, 4
mov ecx, dword [esp + 0xa8]
xor eax, eax
push ecx
mov dword [esp + 0x80], ebp
mov dword [esp + 0x7c], ebx
mov word [esp + 0x6c], ax
call fcn.005844d1
add esp, 4
cmp dword [esp + 0xa0], esi
jb 0x48ce12
mov edx, dword [esp + 0x8c]
push edx
call fcn.00584768
add esp, 4
mov ecx, dword [esp + 0x138]
xor eax, eax
push ecx
mov dword [esp + 0xa4], ebp
mov dword [esp + 0xa0], ebx
mov word [esp + 0x90], ax
mov dword [esp + 0x270], 0xffffffff
call fcn.005844d1
add esp, 4
cmp dword [esp + 0x130], esi
jb 0x48ce5e
mov edx, dword [esp + 0x11c]
push edx
call fcn.00584768
add esp, 4
mov al, 1
mov edi, 1
jmp 0x48cb18
mov edi, dword [esp + 0x28]
shr edi, 1
jne 0x48ce87
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], ebx
jb 0x48ce7d
mov esi, dword [esi]
xor eax, eax
mov word [esi], ax
jmp 0x48cfc6
push edi
push esi
lea ecx, [esp + 0x34]
call fcn.00421b20
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x34], ebx
mov byte [esp + 0x38], bl
cmp dword [ecx + 0x10], ebx
jne 0x48cea7
xor ecx, ecx
jmp 0x48ceaf
cmp dword [ecx + 0x14], 8
jb 0x48ceaf
mov ecx, dword [ecx]
mov edx, dword [esp + 0x30]
mov eax, dword [edx]
lea edx, [esp + 0x28]
push edx
push eax
lea eax, [esp + 0x2c]
push eax
push ebx
push ecx
mov ecx, dword [esp + 0x30]
mov edx, dword [ecx]
push edx
call ebp
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x30]
mov dword [ecx + 0x34], eax
mov eax, dword [edx]
cmp word [eax + edi*2 - 2], bx
jne 0x48cee0
dec edi
lea ecx, [esp + 0x2c]
mov dword [esp + 0x34], edi
mov byte [esp + 0x38], 1
call fcn.004704c0
cmp dword [esp + 0x24], 2
jne 0x48cfc6
cmp byte [esp + 0x27c], bl
jne 0x48cfc6
cmp dword [esi + 0x14], 8
jb 0x48cf14
mov eax, dword [esi]
jmp 0x48cf16
mov eax, esi
mov ebp, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push ebx
push ebx
push eax
call ebp
mov edi, eax
cmp edi, ebx
setne al
cmp al, bl
je 0x48cfc6
xor eax, eax
mov dword [esp + 0x10c], 7
mov dword [esp + 0x108], ebx
mov word [esp + 0xf8], ax
mov dword [esp + 0x114], ebx
mov dword [esp + 0x118], ebx
push edi
lea ecx, [esp + 0xfc]
push ecx
lea ecx, [esp + 0x34]
mov dword [esp + 0x274], 0xb
call fcn.00421b20
cmp dword [esi + 0x14], 8
mov edx, dword [esp + 0x30]
mov ecx, dword [edx]
jb 0x48cf87
mov eax, dword [esi]
jmp 0x48cf89
mov eax, esi
push edi
push ecx
push eax
call ebp
lea ecx, [esp + 0x2c]
call fcn.004215e0
lea eax, [esp + 0xf8]
cmp esi, eax
je 0x48cfaf
push 0xffffffffffffffff
mov ecx, eax
push ebx
push ecx
mov ecx, esi
call fcn.00402610
lea ecx, [esp + 0xf8]
mov dword [esp + 0x26c], 0xffffffff
call fcn.00405eb0
mov edx, dword [esp + 0x1c]
cmp dword [edx + 0x34], ebx
jne 0x48cfd6
mov al, 1
jmp 0x48d5db
xor al, al
mov ebp, 7
lea ecx, [ecx]
cmp al, bl
jne 0x48d043
lea eax, [esp + 0x11c]
push 0x5fcf00
push eax
call fcn.00423280
add esp, 8
mov esi, eax
or dword [esp + 0x18], 2
mov dword [esp + 0x26c], 0xc
cmp dword [0x695aa8], ebx
je 0x48d027
call sub.KERNEL32.dll_GetCurrentThreadId
cmp eax, dword [0x695aa8]
je 0x48d027
call fcn.004443b0
jmp 0x48d02c
mov al, byte [0x68a580]
cmp al, bl
je 0x48d043
push esi
call fcn.00445fa0
add esp, 4
mov byte [esp + 0x17], 1
cmp eax, 1
jae 0x48d047
mov byte [esp + 0x17], bl
test byte [esp + 0x18], 2
mov dword [esp + 0x26c], 0xffffffff
je 0x48d088
mov ecx, dword [esp + 0x138]
and dword [esp + 0x18], 0xfffffffd
push ecx
call fcn.005844d1
add esp, 4
cmp dword [esp + 0x130], 8
jb 0x48d088
mov edx, dword [esp + 0x11c]
push edx
call fcn.00584768
add esp, 4
cmp byte [esp + 0x17], bl
je 0x48d5d9
push str.Cant_read_value_of__s
lea ecx, [esp + 0x1c4]
call fcn.00402bb0
xor eax, eax
mov dword [esp + 0x26c], 0xd
mov dword [esp + 0x10c], ebp
mov dword [esp + 0x108], ebx
mov word [esp + 0xf8], ax
mov dword [esp + 0x114], ebx
mov dword [esp + 0x118], ebx
xor ecx, ecx
mov dword [esp + 0xc4], ebp
mov dword [esp + 0xc0], ebx
mov word [esp + 0xb0], cx
mov dword [esp + 0xcc], ebx
mov dword [esp + 0xd0], ebx
mov byte [esp + 0x26c], 0xf
call fcn.00425e70
cmp eax, ebx
je 0x48d12e
lea edx, [esp + 0xf8]
push edx
lea ecx, [esp + 0xb4]
push ecx
lea edx, [esp + 0x1c8]
push edx
mov ecx, eax
call fcn.00429320
cmp eax, ebx
jne 0x48d13e
lea eax, [esp + 0x1c0]
push eax
call fcn.004292f0
add esp, 4
mov esi, eax
call fcn.00420510
mov dword [esp + 0x54], eax
mov byte [esp + 0x26c], 0x10
call fcn.00420510
mov dword [esp + 0x58], eax
mov byte [esp + 0x26c], 0x11
call fcn.00420510
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], esi
mov dword [esp + 0x64], ebx
push str.wx.sys_error
lea ecx, [esp + 0x1e8]
mov byte [esp + 0x270], 0x12
call fcn.00402bb0
mov edi, dword [esp + 0x20]
lea ecx, [esp + 0xd4]
push ecx
mov ecx, dword [esp + 0x20]
mov byte [esp + 0x270], 0x13
call fcn.00486fd0
add esp, 4
mov byte [esp + 0x26c], 0x14
mov dword [esp + 0x168], 1
mov dword [esp + 0x170], str....._srcmsw_registry.cpp
mov dword [esp + 0x178], str.wxRegKey::QueryValue
mov dword [esp + 0x174], 0x44f
mov dword [esp + 0x17c], 0x5fcf00
mov dword [esp + 0x180], ebx
mov dword [esp + 0x184], ebx
mov dword [esp + 0x188], ebx
mov dword [esp + 0x18c], ebx
call sub.KERNEL32.dll_GetCurrentThreadId
xor edx, edx
mov dword [esp + 0x190], eax
mov dword [esp + 0x194], ebx
mov dword [esp + 0x1ac], ebp
mov dword [esp + 0x1a8], ebx
mov word [esp + 0x198], dx
mov dword [esp + 0x1b4], ebx
mov dword [esp + 0x1b8], ebx
mov byte [esp + 0x26c], 0x15
call sub.KERNEL32.dll_GetLastError
push 0xffffffffffffffff
mov edi, eax
push ebx
lea eax, [esp + 0x1ec]
push eax
lea ecx, [esp + 0x1a4]
call fcn.00402610
mov eax, dword [esp + 0x194]
cmp eax, ebx
jne 0x48d2dc
push 0x20
call fcn.00584773
mov esi, eax
add esp, 4
mov dword [esp + 0x2c], esi
mov byte [esp + 0x26c], 0x16
cmp esi, ebx
je 0x48d2cb
push 0x64
call fcn.00447710
push 4
push eax
mov dword [esi + 4], eax
mov dword [esi + 8], ebx
call fcn.00585c5e
mov dword [esi], eax
push 0x64
mov byte [esp + 0x27c], 0x17
call fcn.00447710
push 4
push eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], ebx
call fcn.00585c5e
mov dword [esi + 0x10], eax
add esp, 0x18
mov eax, esi
jmp 0x48d2cd
xor eax, eax
mov byte [esp + 0x26c], 0x15
mov dword [esp + 0x194], eax
push 0xffffffffffffffff
xor ecx, ecx
push ebx
lea edx, [esp + 0x1ec]
mov word [esp + 0x148], cx
push edx
lea ecx, [esp + 0x14c]
mov esi, eax
mov dword [esp + 0x160], ebp
mov dword [esp + 0x15c], ebx
call fcn.00402610
mov dword [esp + 0x15c], ebx
mov dword [esp + 0x160], ebx
mov dword [esp + 0x164], ebx
lea eax, [esp + 0x17]
push eax
lea ecx, [esp + 0x144]
push ecx
mov ecx, esi
mov byte [esp + 0x274], 0x18
call fcn.004b1eb0
mov edx, dword [esp + 0x15c]
push edx
mov esi, eax
call fcn.005844d1
add esp, 4
cmp dword [esp + 0x154], 8
jb 0x48d36a
mov eax, dword [esp + 0x140]
push eax
call fcn.00584768
add esp, 4
mov edx, dword [esp + 0x1c]
xor ecx, ecx
mov dword [esp + 0x154], ebp
mov dword [esp + 0x150], ebx
mov word [esp + 0x140], cx
mov dword [esi + 0x28], edi
mov esi, dword [edx + 0x34]
lea eax, [esp + 0xd4]
lea ecx, [esp + 0x54]
mov byte [esp + 0x26c], 0x1a
mov dword [esp + 0x3c], eax
call fcn.0041de00
lea ecx, [esp + 0x3c]
mov edi, eax
call fcn.0041d2a0
push eax
push edi
lea ecx, [esp + 0x170]
push esi
push ecx
call fcn.004650b0
mov edx, dword [esp + 0x100]
push edx
call fcn.005844d1
add esp, 0x14
cmp dword [esp + 0xe8], 8
jb 0x48d3ed
mov eax, dword [esp + 0xd4]
push eax
call fcn.00584768
add esp, 4
mov edx, dword [esp + 0x1b4]
xor ecx, ecx
push edx
mov dword [esp + 0xec], ebp
mov dword [esp + 0xe8], ebx
mov word [esp + 0xd8], cx
call fcn.005844d1
mov edi, 8
add esp, 4
cmp dword [esp + 0x1ac], edi
jb 0x48d433
mov eax, dword [esp + 0x198]
push eax
call fcn.00584768
add esp, 4
mov esi, dword [esp + 0x194]
xor ecx, ecx
mov dword [esp + 0x1ac], ebp
mov dword [esp + 0x1a8], ebx
mov word [esp + 0x198], cx
mov dword [esp + 0x2c], esi
cmp esi, ebx
je 0x48d4b2
mov edx, dword [esi + 0x10]
mov eax, dword [esi + 0x14]
push 0x40b5f0
push edx
push eax
mov byte [esp + 0x278], 0x1b
call fcn.00447740
mov edi, dword [esi + 0x10]
push edi
mov dword [esi + 0x18], ebx
call fcn.005844d1
mov ecx, dword [esi]
mov edx, dword [esi + 4]
push 0x475ea0
push ecx
push edx
mov byte [esp + 0x288], 0x13
call fcn.00447740
mov eax, dword [esi]
push eax
mov dword [esi + 8], ebx
call fcn.005844d1
push esi
call fcn.00584768
add esp, 0x24
mov edi, 8
mov eax, dword [esp + 0x200]
push eax
call fcn.005844d1
add esp, 4
cmp dword [esp + 0x1f8], edi
jb 0x48d4db
mov ecx, dword [esp + 0x1e4]
push ecx
call fcn.00584768
add esp, 4
xor edx, edx
lea ecx, [esp + 0x54]
mov dword [esp + 0x1f8], ebp
mov dword [esp + 0x1f4], ebx
mov word [esp + 0x1e4], dx
mov byte [esp + 0x26c], 0xf
call fcn.004020c0
mov eax, dword [esp + 0xcc]
push eax
call fcn.005844d1
add esp, 4
cmp dword [esp + 0xc4], edi
jb 0x48d52d
mov ecx, dword [esp + 0xb0]
push ecx
call fcn.00584768
add esp, 4
mov eax, dword [esp + 0x114]
xor edx, edx
push eax
mov dword [esp + 0xc8], ebp
mov dword [esp + 0xc4], ebx
mov word [esp + 0xb4], dx
call fcn.005844d1
add esp, 4
cmp dword [esp + 0x10c], edi
jb 0x48d56e
mov ecx, dword [esp + 0xf8]
push ecx
call fcn.00584768
add esp, 4
mov eax, dword [esp + 0x1dc]
xor edx, edx
push eax
mov dword [esp + 0x110], ebp
mov dword [esp + 0x10c], ebx
mov word [esp + 0xfc], dx
mov dword [esp + 0x270], 0xffffffff
call fcn.005844d1
add esp, 4
cmp dword [esp + 0x1d4], edi
jb 0x48d5ba
mov ecx, dword [esp + 0x1c0]
push ecx
call fcn.00584768
add esp, 4
xor edx, edx
mov dword [esp + 0x1d4], ebp
mov dword [esp + 0x1d0], ebx
mov word [esp + 0x1c0], dx
mov al, 1
jmp 0x48cfe0
xor al, al
mov ecx, dword [esp + 0x264]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x24c]
xor ecx, esp
call fcn.00585b7b
add esp, 0x25c
ret 0xc