Function at 0x43c2b0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x820
mov dx, word [0x4ffec0]
push ebx
push esi
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x40e]
mov word [ebp - 0x410], dx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x81e]
mov word [ebp - 0x820], dx
rep stosd dword es:[edi], eax
mov ecx, dword [0x6dcf84]
push 0
stosw word es:[edi], ax
lea eax, [ebp - 0x820]
push 0x104
push eax
push ecx
call fcn.004a7ac0
mov edi, dword [ebp + 0x14]
mov ebx, dword [sym.imp.MSVCRT.dll_wcslen]
mov esi, dword [sym.imp.MSVCRT.dll__snwprintf]
mov eax, edi
and eax, 0xff
add esp, 0x10
sub eax, 0x20
je 0x43c354
dec eax
jne 0x43c37d
push 0x6c4558
call ebx
add esp, 4
test eax, eax
jbe 0x43c37d
push 0x6c4558
push 0x4eb504
lea edx, [ebp - 0x410]
push 0x103
push edx
jmp 0x43c378
push 0x6c4350
call ebx
add esp, 4
test eax, eax
jbe 0x43c37d
push 0x6c4350
push 0x4eb504
lea eax, [ebp - 0x410]
push 0x103
push eax
call esi
add esp, 0x10
cmp word [ebp - 0x410], 0
je 0x43c4ca
mov dx, word [0x4ffec0]
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x616]
mov word [ebp - 0x618], dx
mov word [ebp - 0x208], dx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x206]
push 0x104
rep stosd dword es:[edi], eax
lea ecx, [ebp - 0x618]
lea edx, [ebp - 0x410]
push ecx
push edx
stosw word es:[edi], ax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [ebp - 0x618]
lea ecx, [ebp - 0x820]
push eax
lea edx, [ebp - 0x208]
push ecx
push edx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x208]
push 1
push eax
call fcn.004a7ba0
lea ecx, [ebp - 0x208]
push ecx
call fcn.004a7f30
lea edx, [ebp - 0x208]
push edx
call ebx
mov word [ebp + eax*2 - 0x20a], 0
mov eax, dword [ebp + 8]
add esp, 0x10
test eax, eax
je 0x43c458
mov ecx, dword [ebp + 0x20]
lea eax, [ebp - 0x208]
push eax
push 0x4eb504
push 0x103
push ecx
call esi
add esp, 0x10
xor eax, eax
lea esp, [ebp - 0x82c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
lea edx, [ebp - 0x208]
test edx, edx
jne 0x43c466
xor esi, esi
jmp 0x43c4a1
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [eax + eax + 2]
mov eax, edi
add eax, 3
and al, 0xfc
call fcn.004d3780
mov esi, esp
push 0
push 0
push edi
push esi
lea ecx, [ebp - 0x208]
push 0xffffffffffffffff
push ecx
push 0
push 0
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edx, dword [ebp + 0x20]
push esi
push 0x4f0338
push 0x103
push edx
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x10
xor eax, eax
lea esp, [ebp - 0x82c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
mov eax, dword [ebp + 8]
test eax, eax
je 0x43c4f4
mov eax, dword [ebp + 0x20]
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ebp + 0x18]
push eax
mov eax, dword [ebp + 0x10]
push ecx
push edx
push edi
push eax
call dword [ebp + 0xc]
lea esp, [ebp - 0x82c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
mov ecx, dword [ebp + 0x20]
mov edx, dword [ebp + 0x1c]
mov eax, dword [ebp + 0x18]
push ecx
mov ecx, dword [ebp + 0x10]
push edx
push eax
push edi
push ecx
call dword [ebp + 0xc]
lea esp, [ebp - 0x82c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c