Function at 0x437bf0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x830
mov eax, dword [0x5c04b4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push eax
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionProfileList
push str._s_s
lea eax, [ebp - 0x814]
mov dword [ebp - 0x818], 0
push 0x104
push eax
mov ebx, ecx
mov edi, 1
call fcn.0052fc70
lea eax, [ebp - 0x818]
mov ecx, reloc.WS2_32.dll_bind
push 0x20019
push eax
lea edx, [ebp - 0x814]
call fcn.00518680
add esp, 0x1c
test al, al
je 0x437ed3
mov esi, dword [ebp - 0x818]
lea eax, [ebp - 0x820]
push eax
push 0
lea eax, [ebp - 0x81c]
mov dword [ebp - 0x820], 0x208
push eax
push 0
push str.ProfileImagePath
push esi
call dword [0x5c0058]
test eax, eax
je 0x437c9c
push eax
mov eax, dword [sym.imp.KERNEL32.dll_SetLastError]
call eax
jmp 0x437ed3
mov eax, dword [ebp - 0x81c]
cmp eax, 1
je 0x437cba
cmp eax, 2
je 0x437cba
mov eax, dword [sym.imp.KERNEL32.dll_SetLastError]
push 0xd
call eax
jmp 0x437ed3
cmp dword [ebp - 0x820], 0x208
jbe 0x437cd4
mov eax, dword [sym.imp.KERNEL32.dll_SetLastError]
push 0x7a
call eax
jmp 0x437ed3
lea eax, [ebp - 0x820]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x81c]
push eax
push 0
push str.ProfileImagePath
push esi
call dword [0x5c0058]
mov esi, eax
mov eax, dword [sym.imp.KERNEL32.dll_SetLastError]
push esi
call eax
test esi, esi
sete al
test al, al
je 0x437ed3
push 0x104
lea esi, [ebx + 0x18]
push esi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [ebp - 0x82c], eax
test eax, eax
jne 0x437d84
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x437d37
sub ecx, edx
lea eax, [ebp - 0x20c]
sar ecx, 1
cmp ecx, 0x104
jae 0x437d66
push eax
push 0x104
push esi
call dword [sym.imp.MSVCR120.dll_wcscpy_s]
add esp, 0xc
jmp 0x437d84
push 0x103
push eax
push 0x104
push esi
call dword [sym.imp.MSVCR120.dll_wcsncpy_s]
add esp, 0x10
xor eax, eax
mov word [esi + 0x206], ax
lea eax, [ebp - 0x82c]
push eax
push 0
push 0
push 0
push 0x575cac
push dword [ebp - 0x818]
call dword [0x5c0058]
test eax, eax
jne 0x437df4
mov eax, dword [ebp - 0x82c]
push eax
mov dword [ebp - 0x81c], eax
call dword [sym.imp.MSVCR120.dll_malloc]
add esp, 4
mov dword [ebx + 0x220], eax
lea esi, [ebx + 0x220]
test eax, eax
je 0x437ed3
lea ecx, [ebp - 0x81c]
mov edx, 0x575cac
push ecx
mov ecx, dword [ebp - 0x818]
push eax
call fcn.00518a20
add esp, 8
test al, al
jne 0x437e07
jmp 0x437ed3
lea edx, [ebx + 0x220]
mov ecx, esi
call fcn.004387e0
lea esi, [ebx + 0x220]
lea eax, [ebp - 0x830]
mov dword [ebp - 0x828], 0xff
push eax
lea eax, [ebp - 0x824]
mov dword [ebp - 0x824], 0xff
push eax
lea eax, [ebp - 0x40c]
push eax
lea eax, [ebp - 0x828]
push eax
lea eax, [ebp - 0x60c]
push eax
push dword [esi]
push 0
call dword [0x5c005c]
test eax, eax
jne 0x437eae
lea ecx, [ebp - 0x60c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x437e55
sub ecx, edx
sar ecx, 1
jne 0x437e7a
lea eax, [ebp - 0x60c]
push 0x575cb4
push eax
call fcn.00438990
add esp, 8
lea ecx, [ebp - 0x40c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x437e83
sub ecx, edx
sar ecx, 1
jne 0x437ea8
lea eax, [ebp - 0x40c]
push 0x575cb4
push eax
call fcn.00438990
add esp, 8
mov dword [esi], 0
mov eax, dword [ebp - 0x824]
mov esi, dword [ebp - 0x828]
add eax, 2
add esi, eax
lea eax, [esi + esi]
push eax
call dword [sym.imp.MSVCR120.dll_malloc]
add esp, 4
mov dword [ebx + 0x14], eax
test eax, eax
jne 0x437f07
mov eax, dword [ebx + 0x220]
xor edi, edi
mov esi, dword [sym.imp.MSVCR120.dll_free]
test eax, eax
je 0x437ef1
push eax
call esi
add esp, 4
mov dword [ebx + 0x220], edi
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x437f24
push eax
call esi
add esp, 4
mov dword [ebx + 0x14], 0
jmp 0x437f24
lea ecx, [ebp - 0x60c]
push ecx
lea ecx, [ebp - 0x40c]
push ecx
push str._s_s
push esi
push eax
call fcn.0052fc70
add esp, 0x14
mov ecx, dword [ebp - 0x818]
test ecx, ecx
je 0x437f3c
push ecx
call dword [0x5c00ac]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00553510
mov esp, ebp
pop ebp
ret 4