Function at 0x43d630
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4856a8
mov eax, dword fs:[0]
push eax
sub esp, 0x174
push ebx
push esi
push edi
mov eax, dword [0x4c600c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x20]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
push 2
push 1
call fcn.0043da50
cmp dword [esi + 4], 0
je 0x43d6d8
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x1c]
test edx, edx
je 0x43d6bb
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x43d6bb
mov eax, edx
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x43d6b0
push edx
call fcn.0043af60
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
cmp dword [ebp - 0x20], 0
jne 0x43d8d1
mov ebx, dword [ebp - 0x18]
mov eax, ebx
test bl, 1
je 0x43d6ef
lea eax, [ebx - 1]
test eax, eax
jne 0x43d720
mov ecx, dword [ebp + 8]
push 0xffffffffffffffff
push eax
call fcn.00416730
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x43d71d
test ebx, ebx
je 0x43d71d
mov eax, ecx
mov byte [eax], 0
lea eax, [eax + 1]
sub ebx, 1
jne 0x43d712
push ecx
jmp 0x43d6bc
mov edi, dword [ebp - 0x1c]
shr eax, 1
cmp word [edi + eax*2 - 2], 0
je 0x43d75f
push str.RegQueryValueExW__
lea ecx, [esi + 8]
mov dword [esi + 4], 0xd
call fcn.0043b900
push ecx
push esi
lea ecx, [ebp - 0xa0]
call fcn.0043bf60
push 0x4c3934
lea eax, [ebp - 0xa0]
push eax
call fcn.0046b639
cmp dword [esi + 0x74], 2
jne 0x43d889
cmp byte [ebp + 0xc], 0
je 0x43d889
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x43d7bc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 4], eax
test eax, eax
je 0x43d7b9
push ecx
lea ecx, [esi + 8]
call fcn.0043fd10
push ecx
push esi
lea ecx, [ebp - 0x110]
call fcn.0043bf60
push 0x4c3934
lea eax, [ebp - 0x110]
push eax
call fcn.0046b639
mov eax, dword [ebp - 0x10]
push 0
add eax, 2
lea ecx, [ebp - 0x30]
push eax
call fcn.004152a0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x10]
inc eax
push eax
push dword [ebp - 0x2c]
push edi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x43d820
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 4], eax
test eax, eax
je 0x43d820
push ecx
lea ecx, [esi + 8]
call fcn.0043fd10
push ecx
push esi
lea ecx, [ebp - 0x180]
call fcn.0043bf60
push 0x4c3934
lea eax, [ebp - 0x180]
push eax
call fcn.0046b639
jmp 0x43d820
cmp dword [ebp - 0x28], 0
mov edx, 0x4ca5a8
cmovne edx, dword [ebp - 0x2c]
xor ecx, ecx
mov eax, edx
test edx, edx
je 0x43d84a
cmp word [edx], cx
je 0x43d84a
lea ebx, [ebx]
lea eax, [eax + 2]
inc ecx
cmp word [eax], 0
jne 0x43d840
push ecx
mov ecx, dword [ebp + 8]
push edx
call fcn.00410191
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x43d87e
mov ecx, dword [ebp - 0x28]
test ecx, ecx
je 0x43d87e
add ecx, ecx
je 0x43d87e
lea ebx, [ebx]
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x43d870
mov eax, dword [ebp - 0x2c]
push eax
call fcn.0043af60
add esp, 4
jmp 0x43d8aa
xor ecx, ecx
mov eax, edi
test edi, edi
je 0x43d8a0
cmp word [edi], cx
je 0x43d8a0
lea eax, [eax + 2]
inc ecx
cmp word [eax], 0
jne 0x43d896
push ecx
mov ecx, dword [ebp + 8]
push edi
call fcn.00410191
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x43d8cb
test ebx, ebx
je 0x43d8cb
mov eax, edi
jmp 0x43d8c0
mov byte [eax], 0
lea eax, [eax + 1]
sub ebx, 1
jne 0x43d8c0
push edi
jmp 0x43d6bc
push 0x1e7
mov edx, str.datavect_unsigned_char_::size
mov ecx, str._af_
call fcn.00417c20
int3