Function at 0x4861d0
Capabilities:
Check os version
Get common file path
Get hostname
Get session user name
Get system information on windows
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x21c
mov esi, dword [esp + 0x230]
lea ebx, [esp + 0x14]
push 0x104
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov edi, eax
sub esp, 0x1c
movaps xmm0, xmmword [0x4fd020]
movups xmmword [esp + 4], xmm0
mov dword [esp], ebx
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x2000000
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [esp], eax
je 0x486240
push 8
push 0x104
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFinalPathNameByHandleW]
lea ecx, [eax - 1]
cmp ecx, 0x103
cmovb edi, eax
lea ebp, [esi + 0x38]
push ebx
push edi
push ebp
call fcn.00485cd0
add esp, 0xc
mov ebx, dword [esi + 0x3c]
cmp ebx, 4
jae 0x4862c8
test ebx, ebx
jne 0x4862d7
mov ecx, dword [esp]
mov eax, ecx
inc eax
cmp eax, 2
jb 0x48626c
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x4fd1a4]
lea ebx, [esp + 0x14]
push ebx
push 0
push 0
push eax
call sub.SHELL32.dll_SHGetKnownFolderPath
test eax, eax
mov ebp, dword [esp + 0x230]
js 0x4862e9
mov esi, dword [esp + 0x14]
test esi, esi
je 0x486369
push esi
call sub.api_ms_win_crt_string_l1_1_0.dll_wcslen
add esp, 4
push esi
push eax
push ebp
call fcn.00485cd0
add esp, 0xc
mov edi, dword [ebp + 4]
test edi, edi
je 0x486474
cmp dword [ebp], 0
je 0x48640b
mov esi, dword [ebp + 8]
jmp 0x48644a
mov eax, dword [esi + 0x40]
cmp dword [eax], 0x5c3f5c5c
je 0x48637e
cmp dword [ebp], 0
je 0x48630d
mov eax, dword [esp + 0x230]
mov edi, dword [eax + 0x40]
jmp 0x48634d
push str.USERPROFILE
call sub.api_ms_win_crt_environment_l1_1_0.dll_getenv
add esp, 4
mov esi, eax
cmp dword [ebp], 0
je 0x4863c1
mov eax, dword [ebp + 8]
mov byte [eax], 0
jmp 0x4863c9
inc ebx
mov eax, 0x20
nop word cs:[eax + eax]
mov ebp, eax
add eax, eax
cmp ebx, ebp
ja 0x486320
push ebp
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
add esp, 4
mov edi, eax
push ebx
mov esi, dword [esp + 0x234]
push dword [esi + 0x40]
push eax
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
add esp, 0xc
mov dword [esi + 0x40], edi
mov dword [esi + 0x38], ebp
push 0x5c
push edi
call sub.api_ms_win_crt_private_l1_1_0.dll_strchr
add esp, 8
test eax, eax
je 0x48625a
mov byte [eax], 0x2f
inc eax
push 0x5c
push eax
jmp 0x486350
cmp dword [ebp], 0
je 0x486465
mov eax, dword [ebp + 8]
mov byte [eax], 0
jmp 0x48646d
cmp dword [ebp], 0
je 0x4864c0
lea ecx, [eax + 4]
add ebx, 0xfffffffc
push ebx
push ecx
push eax
call sub.api_ms_win_crt_private_l1_1_0.dll_memmove
add esp, 0xc
mov esi, dword [esp + 0x230]
mov eax, dword [esi + 0x3c]
mov ecx, dword [esi + 0x40]
lea edx, [eax - 4]
mov dword [esi + 0x3c], edx
mov byte [ecx + eax - 4], 0
mov ebx, dword [esi + 0x3c]
test ebx, ebx
jne 0x4862d7
jmp 0x48625a
mov eax, dword [0x5052b0]
mov dword [ebp + 8], eax
mov dword [ebp + 4], 0
test esi, esi
je 0x486575
push esi
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
test eax, eax
je 0x486575
mov edi, eax
mov eax, dword [ebp]
mov ecx, eax
sub ecx, 1
jb 0x48648e
cmp ecx, edi
jb 0x48648e
mov eax, dword [ebp + 8]
xor ecx, ecx
jmp 0x4864f0
inc edi
mov eax, 0x20
nop word cs:[eax + eax]
mov ebx, eax
add eax, eax
cmp edi, ebx
ja 0x486420
push ebx
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
add esp, 4
mov esi, eax
push edi
push dword [ebp + 8]
push eax
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
add esp, 0xc
mov dword [ebp + 8], esi
mov dword [ebp], ebx
lea ebx, [esp + 0x14]
push 0x5c
push esi
nop dword [eax]
call sub.api_ms_win_crt_private_l1_1_0.dll_strchr
add esp, 8
test eax, eax
je 0x486474
mov byte [eax], 0x2f
inc eax
push 0x5c
push eax
jmp 0x486450
mov eax, dword [0x5052b0]
mov dword [ebp + 8], eax
mov dword [ebp + 4], 0
push 0x2f
push ebp
call fcn.00473240
add esp, 8
push dword [esp + 0x14]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
jmp 0x486580
cmp eax, 2
mov ecx, 0x20
cmovae ecx, eax
mov edx, edi
inc edx
nop dword [eax]
mov ebx, ecx
add ecx, ecx
cmp edx, ebx
ja 0x4864a0
test eax, eax
je 0x4864d8
push ebx
push dword [ebp + 8]
call sub.api_ms_win_crt_heap_l1_1_0.dll_realloc
add esp, 8
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 4]
jmp 0x4864e9
add ebx, 0xfffffffd
mov ecx, dword [esp + 0x230]
mov dword [ecx + 0x3c], ebx
add eax, 3
mov dword [ecx + 0x40], eax
jmp 0x4862d7
push ebx
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
add esp, 4
mov byte [eax], 0
mov dword [ebp + 8], eax
xor ecx, ecx
mov dword [ebp], ebx
lea ebx, [esp + 0x14]
add ecx, eax
push edi
push esi
push ecx
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
add esp, 0xc
mov eax, dword [ebp + 4]
add eax, edi
mov dword [ebp + 4], eax
mov ecx, dword [ebp + 8]
mov byte [ecx + eax], 0
mov edi, dword [ebp + 4]
test edi, edi
je 0x486575
cmp dword [ebp], 0
je 0x48651e
mov esi, dword [ebp + 8]
jmp 0x48655a
inc edi
mov eax, 0x20
nop word cs:[eax + eax]
mov ebx, eax
add eax, eax
cmp edi, ebx
ja 0x486530
push ebx
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
add esp, 4
mov esi, eax
push edi
push dword [ebp + 8]
push eax
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
add esp, 0xc
mov dword [ebp + 8], esi
mov dword [ebp], ebx
lea ebx, [esp + 0x14]
push 0x5c
push esi
nop dword [eax]
call sub.api_ms_win_crt_private_l1_1_0.dll_strchr
add esp, 8
test eax, eax
je 0x486575
mov byte [eax], 0x2f
inc eax
push 0x5c
push eax
jmp 0x486560
push 0x2f
push ebp
call fcn.00473240
add esp, 8
mov eax, dword [0x4fd1a0]
push ebx
push 0
push 0
push eax
call sub.SHELL32.dll_SHGetKnownFolderPath
lea edi, [ebp + 0xc]
test eax, eax
js 0x4865d3
mov esi, dword [esp + 0x14]
test esi, esi
je 0x486650
push esi
call sub.api_ms_win_crt_string_l1_1_0.dll_wcslen
add esp, 4
push esi
push eax
push edi
call fcn.00485cd0
add esp, 0xc
mov ebx, dword [ebp + 0x10]
test ebx, ebx
je 0x4866d4
cmp dword [edi], 0
je 0x48665d
mov esi, dword [ebp + 0x14]
jmp 0x48669f
mov ebx, dword [ebp + 4]
test ebx, ebx
je 0x486756
mov edx, dword [ebp + 8]
test edx, edx
je 0x486756
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
test eax, eax
je 0x486601
mov ecx, esi
not ecx
add ecx, eax
cmp ecx, ebx
jae 0x4866ee
mov dword [esp], edx
cmp eax, 2
mov ecx, 0x20
cmovae ecx, eax
lea edx, [ebx + esi]
inc edx
nop word cs:[eax + eax]
mov ebp, ecx
add ecx, ecx
cmp edx, ebp
ja 0x486620
test eax, eax
je 0x4866f3
push ebp
mov esi, dword [esp + 0x234]
push dword [esi + 0x14]
call sub.api_ms_win_crt_heap_l1_1_0.dll_realloc
add esp, 8
mov ecx, eax
mov dword [esi + 0x14], eax
mov esi, dword [esi + 0x10]
jmp 0x486730
cmp dword [edi], 0
je 0x4866c5
mov eax, dword [ebp + 0x14]
mov byte [eax], 0
jmp 0x4866cd
inc ebx
mov eax, 0x20
nop word cs:[eax + eax]
mov ebp, eax
add eax, eax
cmp ebx, ebp
ja 0x486670
push ebp
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
add esp, 4
mov esi, eax
push ebx
mov ebx, dword [esp + 0x234]
push dword [ebx + 0x14]
push eax
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
add esp, 0xc
mov dword [ebx + 0x14], esi
mov dword [ebx + 0xc], ebp
mov ebp, ebx
push 0x5c
push esi
nop word cs:[eax + eax]
call sub.api_ms_win_crt_private_l1_1_0.dll_strchr
add esp, 8
test eax, eax
je 0x4866d4
mov byte [eax], 0x2f
inc eax
push 0x5c
push eax
jmp 0x4866b0
mov eax, dword [0x5052b0]
mov dword [ebp + 0x14], eax
mov dword [ebp + 0x10], 0
push 0x2f
push edi
call fcn.00473240
add esp, 8
push dword [esp + 0x14]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
jmp 0x48681b
mov ecx, dword [ebp + 0x14]
jmp 0x48673c
push ebp
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
add esp, 4
mov ecx, eax
test esi, esi
je 0x486723
lea eax, [esi + 1]
push eax
mov eax, dword [esp + 0x234]
push dword [eax + 0x14]
push ecx
mov dword [esp + 0x18], ecx
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
mov ecx, dword [esp + 0x18]
add esp, 0xc
jmp 0x486726
mov byte [ecx], 0
mov eax, dword [esp + 0x230]
mov dword [eax + 0x14], ecx
mov edx, dword [esp]
mov dword [edi], ebp
mov ebp, dword [esp + 0x230]
add esi, ecx
push ebx
push edx
push esi
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
add esp, 0xc
add ebx, dword [ebp + 0x10]
mov dword [ebp + 0x10], ebx
mov eax, dword [ebp + 0x14]
mov byte [eax + ebx], 0
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
test eax, eax
je 0x48676b
mov ecx, ebx
not ecx
add ecx, eax
cmp ecx, 0xe
jae 0x4867a9
cmp eax, 2
mov ecx, 0x20
cmovae ecx, eax
lea edx, [ebx + 0xf]
nop dword [eax]
mov ebp, ecx
add ecx, ecx
cmp edx, ebp
ja 0x486780
test eax, eax
je 0x4867ae
push ebp
mov ebx, dword [esp + 0x234]
push dword [ebx + 0x14]
call sub.api_ms_win_crt_heap_l1_1_0.dll_realloc
add esp, 8
mov esi, eax
mov dword [ebx + 0x14], eax
mov ebx, dword [ebx + 0x10]
jmp 0x4867e3
mov esi, dword [ebp + 0x14]
jmp 0x4867ec
push ebp
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
add esp, 4
mov esi, eax
test ebx, ebx
je 0x4867d6
lea eax, [ebx + 1]
push eax
mov eax, dword [esp + 0x234]
push dword [eax + 0x14]
push esi
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
add esp, 0xc
jmp 0x4867d9
mov byte [esi], 0
mov eax, dword [esp + 0x230]
mov dword [eax + 0x14], esi
mov dword [edi], ebp
mov ebp, dword [esp + 0x230]
mov word [esi + ebx + 0xc], 0x2f6c
mov dword [esi + ebx + 8], 0x61636f4c
mov dword [esi + ebx + 4], 0x2f617461
mov dword [esi + ebx], 0x44707041
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
lea edx, [eax + 0xe]
mov dword [ebp + 0x10], edx
mov byte [ecx + eax + 0xe], 0
lea ebx, [esp + 0x14]
push str.MSYSTEM
call sub.api_ms_win_crt_environment_l1_1_0.dll_getenv
add esp, 4
test eax, eax
je 0x48686c
lea esi, [ebp + 0x18]
mov ecx, esi
mov edx, str.HOME
push str..config_
call fcn.00486ed0
add esp, 4
mov ecx, esi
mov edx, str.HOME
push 0
call fcn.00486ed0
add esp, 4
mov ecx, esi
mov edx, str.MINGW_PREFIX
push 0x4fd073
call fcn.00486ed0
add esp, 4
lea esi, [ebp + 0x18]
push str..config_
push ebp
push esi
call fcn.004738b0
add esp, 0xc
mov edx, dword [0x4fd1a8]
mov ecx, esi
call fcn.004872b0
mov edx, dword [0x4fd1ac]
mov ecx, esi
call fcn.004872b0
mov edx, dword [0x4fd1a0]
mov ecx, esi
call fcn.004872b0
push 0x4fd077
push ebp
push esi
call fcn.004738b0
add esp, 0xc
push str.MSYSTEM
call sub.api_ms_win_crt_environment_l1_1_0.dll_getenv
add esp, 4
test eax, eax
je 0x486912
push str.HOME
call sub.api_ms_win_crt_environment_l1_1_0.dll_getenv
add esp, 4
test eax, eax
je 0x486912
lea esi, [ebp + 0x28]
mov ecx, esi
mov edx, str.HOME
push str..local_share_
call fcn.00486ed0
add esp, 4
mov ecx, esi
mov edx, str.HOME
push 0
call fcn.00486ed0
add esp, 4
mov ecx, esi
mov edx, str.MINGW_PREFIX
push str.share
call fcn.00486ed0
add esp, 4
lea esi, [ebp + 0x28]
push str..local_share_
push ebp
push esi
call fcn.004738b0
add esp, 0xc
mov edx, dword [0x4fd1a8]
mov ecx, esi
call fcn.004872b0
mov edx, dword [0x4fd1ac]
mov ecx, esi
call fcn.004872b0
mov edx, dword [0x4fd1a0]
mov ecx, esi
call fcn.004872b0
push 0x4fd077
push ebp
push esi
call fcn.004738b0
add esp, 0xc
push str.USERNAME
call sub.api_ms_win_crt_environment_l1_1_0.dll_getenv
add esp, 4
test eax, eax
je 0x4869ac
mov esi, eax
mov edi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_isspace]
mov ebp, eax
nop word cs:[eax + eax]
movsx ebx, byte [ebp]
push ebx
call edi
add esp, 4
inc ebp
test eax, eax
jne 0x486980
test bl, bl
mov ebp, dword [esp + 0x230]
lea ebx, [esp + 0x14]
je 0x4869ac
cmp dword [ebp + 0x44], 0
je 0x4869e4
mov eax, dword [ebp + 0x4c]
mov byte [eax], 0
jmp 0x4869ec
mov dword [esp + 8], 0x80
lea eax, [esp + 8]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
je 0x486a84
lea esi, [ebp + 0x44]
push ebx
call sub.api_ms_win_crt_string_l1_1_0.dll_wcslen
add esp, 4
push ebx
push eax
push esi
call fcn.00485cd0
add esp, 0xc
jmp 0x486a84
mov eax, dword [0x5052b0]
mov dword [ebp + 0x4c], eax
mov dword [ebp + 0x48], 0
push esi
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
test eax, eax
je 0x486a84
mov edi, eax
mov eax, dword [ebp + 0x44]
mov ecx, eax
sub ecx, 1
jb 0x486a1b
cmp ecx, edi
jb 0x486a1b
mov eax, dword [ebp + 0x4c]
xor ecx, ecx
jmp 0x486a68
cmp eax, 2
mov ecx, 0x20
cmovae ecx, eax
mov edx, edi
inc edx
nop dword [eax]
mov ebx, ecx
add ecx, ecx
cmp edx, ebx
ja 0x486a30
test eax, eax
je 0x486a50
push ebx
push dword [ebp + 0x4c]
call sub.api_ms_win_crt_heap_l1_1_0.dll_realloc
add esp, 8
mov dword [ebp + 0x4c], eax
mov ecx, dword [ebp + 0x48]
jmp 0x486a61
push ebx
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
add esp, 4
mov byte [eax], 0
mov dword [ebp + 0x4c], eax
xor ecx, ecx
mov dword [ebp + 0x44], ebx
lea ebx, [esp + 0x14]
add ecx, eax
push edi
push esi
push ecx
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
add esp, 0xc
mov eax, dword [ebp + 0x48]
add eax, edi
mov dword [ebp + 0x48], eax
mov ecx, dword [ebp + 0x4c]
mov byte [ecx + eax], 0
mov dword [esp + 8], 0x80
lea eax, [esp + 8]
push eax
push ebx
push 1
call dword [sym.imp.KERNEL32.dll_GetComputerNameExW]
test eax, eax
je 0x486ab5
lea esi, [ebp + 0x50]
push ebx
call sub.api_ms_win_crt_string_l1_1_0.dll_wcslen
add esp, 4
push ebx
push eax
push esi
call fcn.00485cd0
add esp, 0xc
push str.SHELL
call sub.api_ms_win_crt_environment_l1_1_0.dll_getenv
add esp, 4
test eax, eax
je 0x486baa
mov esi, eax
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
test eax, eax
je 0x486baa
mov edi, dword [ebp + 0x5c]
mov edx, dword [ebp + 0x60]
test edi, edi
je 0x486af1
mov ecx, edx
not ecx
add ecx, edi
cmp ecx, eax
jae 0x486b39
cmp edi, 2
mov ecx, 0x20
cmovae ecx, edi
mov dword [esp], eax
mov dword [esp + 0xc], edx
add edx, eax
inc edx
nop word cs:[eax + eax]
mov ebx, ecx
add ecx, ecx
cmp edx, ebx
ja 0x486b10
test edi, edi
je 0x486b45
push ebx
mov ebp, dword [esp + 0x234]
push dword [ebp + 0x64]
call sub.api_ms_win_crt_heap_l1_1_0.dll_realloc
add esp, 8
mov edi, eax
mov dword [ebp + 0x64], eax
mov edx, dword [ebp + 0x60]
jmp 0x486b82
mov ebp, dword [esp + 0x230]
mov edi, dword [ebp + 0x64]
jmp 0x486b8c
push ebx
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
add esp, 4
mov edi, eax
mov edx, dword [esp + 0xc]
test edx, edx
je 0x486b75
lea eax, [edx + 1]
push eax
mov ebp, dword [esp + 0x234]
push dword [ebp + 0x64]
push edi
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
mov edx, dword [esp + 0x18]
add esp, 0xc
jmp 0x486b7f
mov byte [edi], 0
mov ebp, dword [esp + 0x230]
mov dword [ebp + 0x64], edi
mov eax, dword [esp]
mov dword [ebp + 0x5c], ebx
lea ebx, [esp + 0x14]
add edx, edi
push eax
push esi
push edx
mov esi, eax
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
add esp, 0xc
mov eax, dword [ebp + 0x60]
add eax, esi
mov dword [ebp + 0x60], eax
mov ecx, dword [ebp + 0x64]
mov byte [ecx + eax], 0
mov edi, dword [ebp + 0x60]
test edi, edi
je 0x486c15
cmp dword [ebp + 0x5c], 0
je 0x486bbc
mov esi, dword [ebp + 0x64]
jmp 0x486bfa
inc edi
mov eax, 0x20
nop word cs:[eax + eax]
mov ebx, eax
add eax, eax
cmp edi, ebx
ja 0x486bd0
push ebx
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
add esp, 4
mov esi, eax
push edi
push dword [ebp + 0x64]
push eax
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
add esp, 0xc
mov dword [ebp + 0x64], esi
mov dword [ebp + 0x5c], ebx
lea ebx, [esp + 0x14]
push 0x5c
push esi
nop dword [eax]
call sub.api_ms_win_crt_private_l1_1_0.dll_strchr
add esp, 8
test eax, eax
je 0x486c15
mov byte [eax], 0x2f
inc eax
push 0x5c
push eax
jmp 0x486c00
lea eax, [esp + 0x18]
push 0x110
push 0
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
add esp, 0xc
mov dword [esp + 0x14], 0x114
push ebx
call sub.ntdll.dll_RtlGetVersion
test eax, eax
js 0x486dae
mov dword [esp + 4], 0
lea eax, [esp + 4]
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftWindows_NTCurrentVersion
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x486d9f
mov dword [esp + 0x10], 0
mov eax, dword [esp + 4]
mov dword [esp + 8], 4
lea ecx, [esp + 0x10]
lea edx, [esp + 8]
push edx
push ecx
push 0
push 0x18
push 0x4fd0f6
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
lea eax, [ebp + 0x74]
push dword [esp + 0x10]
push dword [esp + 0x24]
push dword [esp + 0x24]
push dword [esp + 0x24]
push str._u._u._u._u
push eax
call fcn.00472860
add esp, 0x18
lea esi, [ebp + 0x98]
mov dword [ebp + 0x98], 0
mov dword [ebp + 0x9c], 0
mov eax, dword [0x5052b0]
mov dword [ebp + 0xa0], eax
push 0
push esi
push str.DisplayVersion
push dword [esp + 0x10]
call fcn.00485460
add esp, 0x10
test al, al
jne 0x486d19
cmp word [esp + 0x28], 0
je 0x486d19
lea edi, [esp + 0x28]
push edi
call sub.api_ms_win_crt_string_l1_1_0.dll_wcslen
add esp, 4
push edi
push eax
push esi
call fcn.00485cd0
add esp, 0xc
lea eax, [ebp + 0x80]
push 0
push eax
push str.BuildLabEx
push dword [esp + 0x10]
call fcn.00485460
add esp, 0x10
mov eax, dword [esp + 0x24]
cmp eax, 2
je 0x486d57
cmp eax, 1
je 0x486d69
test eax, eax
jne 0x486d9f
mov esi, str.WIN32s
mov edi, 6
cmp dword [ebp + 0x68], 0
jne 0x486d79
jmp 0x486d92
mov esi, str.WIN32_NT
mov edi, 8
cmp dword [ebp + 0x68], 0
jne 0x486d79
jmp 0x486d92
mov esi, str.WIN32_WINDOWS
mov edi, 0xd
cmp dword [ebp + 0x68], 0
je 0x486d92
mov dword [ebp + 0x6c], 0
mov dword [ebp + 0x68], 0
push dword [ebp + 0x70]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
add esp, 4
mov dword [ebp + 0x68], 0
mov dword [ebp + 0x6c], edi
mov dword [ebp + 0x70], esi
mov eax, dword [esp + 4]
test eax, eax
je 0x486dae
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
movzx eax, word [esp + 0x14]
cmp eax, 0xc
ja case.0x486dc3.4
jmp dword [eax*4 + 0x4fd1b0]
movzx eax, word [esp + 0x34]
cmp eax, 6
je 0x486ea5
cmp eax, 5
je 0x486eb1
cmp eax, 4
jne 0x486ebd
mov esi, str.i486
mov edi, 4
jmp 0x486e4f
mov esi, str.mips
mov edi, 4
jmp 0x486e4f
mov esi, str.alpha
mov edi, 5
jmp 0x486e4f
mov esi, 0x4fd188
mov edi, 3
jmp 0x486e4f
mov esi, 0x4fd184
mov edi, 3
jmp 0x486e4f
mov esi, str.ia64
mov edi, 4
jmp 0x486e4f
mov esi, str.alpha64
jmp 0x486e4a
mov esi, str.x86_64
mov edi, 6
jmp 0x486e4f
mov esi, str.aarch64
mov edi, 7
cmp dword [ebp + 0x8c], 0
je 0x486e7a
mov dword [ebp + 0x90], 0
mov dword [ebp + 0x8c], 0
push dword [ebp + 0x94]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
add esp, 4
mov dword [ebp + 0x8c], 0
mov dword [ebp + 0x90], edi
mov dword [ebp + 0x94], esi
mov eax, dword [esp + 0x18]
mov dword [ebp + 0xa4], eax
add esp, 0x21c
pop esi
pop edi
pop ebx
pop ebp
ret
mov esi, str.i686
mov edi, 4
jmp 0x486e4f
mov esi, str.i586
mov edi, 4
jmp 0x486e4f
mov esi, str.i386
mov edi, 4
jmp 0x486e4f