Function at 0x43d200
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x820
mov dx, word [0x500df0]
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 [0x73ff2c]
push 0
stosw word es:[edi], ax
lea eax, [ebp - 0x820]
push 0x104
push eax
push ecx
call fcn.004a8e10
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 0x43d2a4
dec eax
jne 0x43d2cd
push 0x7274f0
call ebx
add esp, 4
test eax, eax
jbe 0x43d2cd
push 0x7274f0
push 0x4ed128
lea edx, [ebp - 0x410]
push 0x103
push edx
jmp 0x43d2c8
push 0x7272e8
call ebx
add esp, 4
test eax, eax
jbe 0x43d2cd
push 0x7272e8
push 0x4ed128
lea eax, [ebp - 0x410]
push 0x103
push eax
call esi
add esp, 0x10
cmp word [ebp - 0x410], 0
je 0x43d41a
mov dx, word [0x500df0]
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.004a8ef0
lea ecx, [ebp - 0x208]
push ecx
call fcn.004a9280
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 0x43d3a8
mov ecx, dword [ebp + 0x20]
lea eax, [ebp - 0x208]
push eax
push 0x4ed128
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 0x43d3b6
xor esi, esi
jmp 0x43d3f1
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.004d4ce0
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 0x4f1414
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 0x43d444
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