Function at 0x5fc570
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x70a173
mov eax, dword fs:[0]
push eax
sub esp, 0x150
mov eax, dword [0x831704]
xor eax, esp
mov dword [esp + 0x14c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x831704]
xor eax, esp
push eax
lea eax, [esp + 0x164]
mov dword fs:[0], eax
mov ebx, ecx
mov edi, dword [esp + 0x174]
mov esi, dword [esp + 0x178]
push 0
call fcn.005fc120
test al, al
je 0x5fc876
cmp dword [edi + 0x10], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
jne 0x5fc5e4
xor eax, eax
jmp 0x5fc5f0
cmp dword [edi + 0x14], 8
jb 0x5fc5ee
mov eax, dword [edi]
jmp 0x5fc5f0
mov eax, edi
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [esp + 0x24]
push ecx
push 0
lea ecx, [esp + 0x28]
push ecx
push 0
push eax
push dword [ebx]
call ebp
mov dword [ebx + 0x30], eax
test eax, eax
jne 0x5fc876
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x5fc631
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], eax
jb 0x5fc627
mov esi, dword [esi]
xor eax, eax
mov word [esi], ax
jmp 0x5fc81e
push eax
push esi
lea ecx, [esp + 0x20]
call fcn.004936d0
cmp dword [edi + 0x10], 0
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
jne 0x5fc64c
xor eax, eax
jmp 0x5fc658
cmp dword [edi + 0x14], 8
jb 0x5fc656
mov eax, dword [edi]
jmp 0x5fc658
mov eax, edi
lea edx, [esp + 0x24]
push edx
push ecx
lea ecx, [esp + 0x28]
push ecx
push 0
push eax
push dword [ebx]
call ebp
lea ecx, [esp + 0x18]
mov dword [ebx + 0x30], eax
call fcn.00493bc0
cmp dword [esp + 0x20], 2
jne 0x5fc81e
cmp byte [esp + 0x17c], 0
jne 0x5fc81e
cmp dword [esi + 0x14], 8
jb 0x5fc699
mov eax, dword [esi]
jmp 0x5fc69b
mov eax, esi
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov ebp, eax
test ebp, ebp
setne cl
test cl, cl
je 0x5fc760
xor eax, eax
mov dword [esp + 0xec], 7
mov dword [esp + 0xe8], 0
mov word [esp + 0xd8], ax
mov dword [esp + 0xf0], eax
mov dword [esp + 0x16c], eax
lea ecx, [esp + 0x18]
push ebp
lea eax, [esp + 0xdc]
push eax
call fcn.004936d0
cmp dword [esi + 0x14], 8
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
jb 0x5fc705
mov eax, dword [esi]
jmp 0x5fc707
mov eax, esi
push ebp
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
lea ecx, [esp + 0x18]
setne byte [esp + 0x17]
call fcn.00493bc0
lea eax, [esp + 0xd8]
cmp esi, eax
je 0x5fc737
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
call fcn.00419170
lea ecx, [esp + 0xd8]
mov dword [esp + 0x16c], 0xffffffff
call fcn.00418210
cmp byte [esp + 0x17], 0
jne 0x5fc81e
lea esp, [esp]
sub esp, 0x20
mov ecx, esp
push 0x721844
call fcn.00418040
push 6
call fcn.00439d10
add esp, 0x24
test al, al
je 0x5fc81e
push str._s__d_:__s_failed_with_error_0x_08lx___s_.
lea ecx, [esp + 0x60]
call fcn.00436250
push 0x721844
push str.wxRegKey::QueryValue
push 0x406
push str....._srcmsw_registry.cpp
push 6
lea ecx, [esp + 0x12c]
mov dword [esp + 0x180], 1
call fcn.00439de0
mov esi, eax
mov byte [esp + 0x16c], 2
call sub.KERNEL32.dll_GetLastError
push eax
call fcn.005e5210
add esp, 4
push eax
call sub.KERNEL32.dll_GetLastError
push eax
push str.ExpandEnvironmentStrings
push 0x406
push str....._srcmsw_registry.cpp
lea eax, [esp + 0x70]
mov ecx, esi
push eax
call fcn.00479740
lea ecx, [esp + 0x118]
mov byte [esp + 0x16c], 1
call fcn.0043f270
lea ecx, [esp + 0x5c]
mov dword [esp + 0x16c], 0xffffffff
call fcn.00420020
cmp dword [ebx + 0x30], 0
jne 0x5fc876
cmp dword [0x82e960], 0
je 0x5fc86f
push edi
mov ecx, ebx
call fcn.005fba20
add eax, 0xfffffffc
cmp eax, 1
ja 0x5fc86f
push str.Type_mismatch_in_wxRegKey::QueryValue__.
push str._IsNumericValue_szValue_
push str.wxRegKey::QueryValue
push 0x411
push str....._srcmsw_registry.cpp
call fcn.005c7220
add esp, 0x14
cmp byte [0x87c8e0], 0
je 0x5fc86f
mov byte [0x87c8e0], 0
int3
mov al, 1
jmp 0x5fcb4f
sub esp, 0x20
mov ecx, esp
push 0x721844
call fcn.00418040
push 1
call fcn.00439d10
add esp, 0x24
test al, al
je 0x5fcb4d
push str.Cant_read_value_of__s
lea ecx, [esp + 0xfc]
call fcn.00418040
xor eax, eax
mov dword [esp + 0x16c], 3
mov dword [esp + 0x50], 7
mov dword [esp + 0x4c], 0
mov word [esp + 0x3c], ax
mov dword [esp + 0x54], eax
mov byte [esp + 0x16c], 4
call fcn.005eae80
test eax, eax
je 0x5fc8f9
lea ecx, [esp + 0x3c]
push ecx
lea ecx, [esp + 0xfc]
push ecx
mov ecx, eax
call fcn.005ecae0
mov esi, eax
test esi, esi
jne 0x5fc90b
lea eax, [esp + 0xf8]
push eax
call fcn.005ed1e0
add esp, 4
mov esi, eax
call fcn.005c92f0
mov dword [esp + 0x28], eax
mov byte [esp + 0x16c], 5
call fcn.005c92f0
mov dword [esp + 0x2c], eax
mov byte [esp + 0x16c], 6
call fcn.005c92f0
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], 0
push str.wx.sys_error
lea ecx, [esp + 0xbc]
mov byte [esp + 0x170], 7
call fcn.00418040
sub esp, 0x20
mov byte [esp + 0x18c], 8
mov eax, esp
mov dword [esp + 0x38], esp
push edi
push ebx
push eax
call fcn.005fb2b0
push 0
mov byte [esp + 0x19c], 9
mov dword [esp + 0xa0], 1
mov dword [esp + 0xa8], str....._srcmsw_registry.cpp
mov dword [esp + 0xb0], str.wxRegKey::QueryValue
mov dword [esp + 0xac], 0x418
mov dword [esp + 0xb4], 0x721844
call dword [sym.imp.MSVCR120.dll__time64]
add esp, 0x10
mov dword [esp + 0xa8], eax
mov dword [esp + 0xac], edx
call sub.KERNEL32.dll_GetCurrentThreadId
mov dword [esp + 0xb0], eax
xor eax, eax
mov dword [esp + 0xb4], 0
mov dword [esp + 0xcc], 7
mov dword [esp + 0xc8], 0
mov word [esp + 0xb8], ax
mov dword [esp + 0xd0], eax
mov byte [esp + 0x18c], 0xa
lea eax, [esp + 0x48]
push eax
push dword [ebx + 0x30]
call sub.KERNEL32.dll_GetLastError
push eax
lea eax, [esp + 0xe4]
push eax
lea ecx, [esp + 0xa0]
call fcn.0049dde0
mov ecx, eax
mov byte [esp + 0x194], 0xb
call fcn.005f8660
push dword [esp + 0xb0]
mov esi, dword [sym.imp.MSVCR120.dll_free]
mov byte [esp + 0x170], 8
call esi
add esp, 4
cmp dword [esp + 0xac], 8
jb 0x5fca76
push dword [esp + 0x98]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
xor eax, eax
mov dword [esp + 0xac], 7
lea ecx, [esp + 0x78]
mov dword [esp + 0xa8], 0
mov word [esp + 0x98], ax
call fcn.00439c40
push dword [esp + 0xd0]
call esi
add esp, 4
cmp dword [esp + 0xcc], 8
jb 0x5fcac4
push dword [esp + 0xb8]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
xor eax, eax
mov dword [esp + 0xcc], 7
lea ecx, [esp + 0x28]
mov dword [esp + 0xc8], 0
mov word [esp + 0xb8], ax
mov byte [esp + 0x16c], 4
call fcn.00420020
push dword [esp + 0x54]
call esi
add esp, 4
cmp dword [esp + 0x50], 8
jb 0x5fcb11
push dword [esp + 0x3c]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
push dword [esp + 0x110]
xor eax, eax
mov dword [esp + 0x54], 7
mov dword [esp + 0x50], 0
mov word [esp + 0x40], ax
call esi
add esp, 4
cmp dword [esp + 0x10c], 8
jb 0x5fcb4d
push dword [esp + 0xf8]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
xor al, al
mov ecx, dword [esp + 0x164]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x14c]
xor ecx, esp
call fcn.006d1ba7
add esp, 0x15c
ret 0xc