Function at 0x42c6bd
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x44a104
call fcn.00415350
sub esp, 0xeb0
mov eax, dword [0x4560a0]
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x434], edi
mov dword [ebp - 0x430], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x440], ebx
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push ebx
lea eax, [ebp - 0x438]
push eax
call esi
mov dword [ebp - 0x448], ebx
mov dword [ebp - 0x42c], ebx
lea ecx, [ebp - 0xebc]
mov byte [ebp - 4], 4
call fcn.004169fd
mov eax, dword [edi + 4]
push 0x4037d0
push eax
push 0x405774
lea ecx, [ebp - 0xebc]
mov byte [ebp - 4], 5
call fcn.0041a109
cmp eax, ebx
mov edi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [ebp - 0x418], eax
jl 0x42cf63
mov eax, dword [ebp - 0xeb8]
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx]
lea edx, [ebp - 0x42c]
push edx
push eax
push dword [ebp + 8]
call dword [ecx + 0x94]
cmp eax, ebx
mov dword [ebp - 0x418], eax
jl 0x42cf63
cmp dword [ebp - 0x42c], ebx
jne 0x42c7af
mov eax, dword [ebp - 0x434]
push dword [eax + 4]
push dword [ebp - 0x418]
push 0x7d0
push 0x836
call fcn.00418538
add esp, 0x10
mov dword [ebp - 0x418], 0x80004005
jmp 0x42cf63
lea eax, [ebp - 0x448]
push eax
push 0x407ac4
push dword [ebp - 0x42c]
call fcn.0041b934
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 0x418], eax
jl 0x42cf63
push ebx
lea eax, [ebp + 8]
push eax
call esi
push ebx
lea eax, [ebp - 0x41c]
push eax
call esi
push ebx
lea eax, [ebp - 0x41c]
push eax
push 0x407a90
push dword [ebp - 0x448]
mov byte [ebp - 4], 7
call fcn.0041b85c
add esp, 0x10
test eax, eax
jne 0x42cc53
lea ecx, [ebp - 0xc88]
call fcn.0041edde
cmp dword [ebp - 0xc78], ebx
mov eax, dword [ebp - 0x41c]
mov dword [ebp - 0x418], eax
mov eax, dword [ebp - 0xc84]
mov byte [ebp - 4], 8
mov dword [ebp - 0x450], ebx
ja 0x42c843
mov eax, 0x45676c
mov word [eax], bx
jmp 0x42cb3c
push 0x25
push dword [ebp - 0x418]
call dword [sym.imp.msvcrt.dll_wcschr]
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0x454], eax
je 0x42cb17
cmp dword [ebp - 0x450], ebx
mov word [eax], bx
je 0x42cadd
push ebx
lea eax, [ebp - 0x424]
push eax
call esi
push ebx
lea eax, [ebp - 0x428]
push eax
call esi
push ebx
lea eax, [ebp - 0x420]
push eax
call esi
push 0xffffffffffffffff
push dword [ebp - 0x418]
lea ecx, [ebp - 0x420]
mov dword [ebp - 0x450], ebx
call fcn.00415f9d
cmp eax, ebx
mov dword [ebp - 0x418], eax
jl 0x42cba7
push ebx
lea eax, [ebp - 0x43c]
push eax
call esi
mov eax, dword [ebp - 0x420]
push ebx
push ebx
push ebx
push ebx
push eax
mov byte [ebp - 4], 0xc
mov dword [ebp - 0x418], eax
call dword [sym.imp.OLEAUT32.dll_VariantInit]
push eax
push dword [ebp - 0x418]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
cmp eax, ebx
mov dword [ebp - 0x418], eax
je 0x42cbfb
inc eax
push eax
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
push eax
lea eax, [ebp - 0x43c]
push eax
call esi
push ebx
lea eax, [ebp - 0x43c]
push eax
call esi
push eax
lea eax, [ebp - 0x424]
push eax
call esi
cmp dword [ebp - 0x424], ebx
push ebx
je 0x42cc03
mov eax, dword [ebp - 0x420]
push ebx
push dword [ebp - 0x418]
mov dword [ebp - 0x44c], eax
push dword [ebp - 0x424]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantInit]
push eax
push dword [ebp - 0x44c]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov eax, dword [ebp - 0x424]
mov ecx, dword [ebp - 0x418]
mov byte [ecx + eax], bl
push ebx
lea eax, [ebp - 0x43c]
push eax
mov byte [ebp - 4], 0xb
call esi
cmp eax, ebx
je 0x42c989
push eax
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
push 0x400
lea eax, [ebp - 0x414]
push eax
push dword [ebp - 0x424]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x42cb7d
push ebx
lea eax, [ebp - 0x444]
push eax
call esi
lea eax, [ebp - 0x414]
mov byte [ebp - 4], 0xd
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x42c9c0
push ebx
push ebx
sub eax, ecx
push eax
lea eax, [ebp - 0x414]
push eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, ebx
mov dword [ebp - 0x418], eax
je 0x42cc15
add eax, eax
mov dword [ebp - 0x44c], eax
add eax, 2
push eax
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
push eax
lea eax, [ebp - 0x444]
push eax
call esi
push ebx
lea eax, [ebp - 0x444]
push eax
call esi
push eax
lea eax, [ebp - 0x428]
push eax
call esi
cmp dword [ebp - 0x428], ebx
je 0x42cc41
lea eax, [ebp - 0x414]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x42ca2e
push dword [ebp - 0x418]
sub eax, ecx
push dword [ebp - 0x428]
push eax
lea eax, [ebp - 0x414]
push eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [ebp - 0x428]
mov ecx, dword [ebp - 0x44c]
mov word [ecx + eax], bx
push ebx
lea eax, [ebp - 0x444]
push eax
mov byte [ebp - 4], 0xb
call esi
cmp eax, ebx
je 0x42ca7c
push eax
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
push dword [ebp - 0x428]
lea ecx, [ebp - 0xc88]
call fcn.0041ac03
cmp eax, ebx
push dword [ebp - 0x420]
mov dword [ebp - 0x418], eax
jl 0x42cbad
call edi
push ebx
lea eax, [ebp - 0x428]
push eax
mov dword [ebp - 0x420], ebx
mov byte [ebp - 4], 9
call esi
cmp eax, ebx
je 0x42cac2
push eax
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
push ebx
lea eax, [ebp - 0x424]
push eax
mov byte [ebp - 4], 8
call esi
cmp eax, ebx
je 0x42cb06
push eax
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
jmp 0x42cb06
push dword [ebp - 0x418]
lea ecx, [ebp - 0xc88]
call fcn.0041ac03
cmp eax, ebx
mov dword [ebp - 0x418], eax
jl 0x42cbe7
mov dword [ebp - 0x450], 1
mov eax, dword [ebp - 0x454]
add eax, 2
mov dword [ebp - 0x418], eax
jmp 0x42cb3c
push dword [ebp - 0x418]
lea ecx, [ebp - 0xc88]
call fcn.0041ac03
cmp eax, ebx
mov dword [ebp - 0x418], eax
jl 0x42cbe7
mov dword [ebp - 0x418], ebx
cmp dword [ebp - 0x418], ebx
jne 0x42c84b
mov eax, dword [ebp - 0xc84]
mov esi, dword [ebp - 0x434]
push 1
push eax
lea ecx, [esi + 0x10]
call fcn.00416a34
cmp eax, ebx
mov dword [ebp - 0x418], eax
lea ecx, [ebp - 0xc88]
mov byte [ebp - 4], 7
jl 0x42cbf1
call fcn.00419db0
jmp 0x42cc59
mov eax, dword [ebp - 0x434]
push dword [eax + 4]
push 0x80004005
push 0x7d6
push 0x856
call fcn.00418538
add esp, 0x10
mov dword [ebp - 0x418], 0x80070057
push dword [ebp - 0x420]
call edi
lea eax, [ebp - 0x428]
push ebx
push eax
mov dword [ebp - 0x420], ebx
mov byte [ebp - 4], 9
call esi
cmp eax, ebx
je 0x42cbce
push eax
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
lea eax, [ebp - 0x424]
push ebx
push eax
mov byte [ebp - 4], 8
call esi
cmp eax, ebx
je 0x42cbe7
push eax
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
mov byte [ebp - 4], 7
lea ecx, [ebp - 0xc88]
call fcn.00419db0
jmp 0x42cccd
lea eax, [ebp - 0x43c]
jmp 0x42cc1b
mov dword [ebp - 0x418], 0x8007000e
lea eax, [ebp - 0x43c]
jmp 0x42cc26
lea eax, [ebp - 0x444]
mov dword [ebp - 0x418], 0x80070057
push ebx
push eax
mov byte [ebp - 4], 0xb
call esi
cmp eax, ebx
je 0x42cba7
push eax
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
jmp 0x42cba7
mov dword [ebp - 0x418], 0x8007000e
lea eax, [ebp - 0x444]
jmp 0x42cc25
mov esi, dword [ebp - 0x434]
push ebx
lea eax, [ebp + 8]
push eax
push 0x407a60
push dword [ebp - 0x448]
call fcn.0041b85c
add esp, 0x10
test eax, eax
jne 0x42cc82
push dword [ebp + 8]
call dword [sym.imp.msvcrt.dll__wtoi]
pop ecx
mov dword [esi + 0x14], eax
push dword [ebp + 8]
call edi
push ebx
lea eax, [ebp + 8]
push eax
push 0x407a48
push dword [ebp - 0x448]
mov dword [ebp + 8], ebx
call fcn.0041b85c
add esp, 0x10
test eax, eax
jne 0x42cce8
push dword [ebp + 8]
call dword [sym.imp.msvcrt.dll__wtoi]
cmp eax, ebx
pop ecx
mov dword [esi + 0x18], eax
jbe 0x42ccbe
cmp eax, 0x1001
jb 0x42cce8
cmp eax, 0xffffffff
je 0x42cce8
mov dword [ebp - 0x418], 0x80070057
push dword [ebp - 0x41c]
call edi
push dword [ebp + 8]
mov dword [ebp - 0x41c], ebx
call edi
mov dword [ebp + 8], ebx
jmp 0x42cf63
push dword [ebp - 0x41c]
call edi
push dword [ebp + 8]
mov dword [ebp - 0x41c], ebx
mov byte [ebp - 4], 5
call edi
push ebx
lea eax, [ebp - 0x438]
push eax
push 0x403ac8
push dword [ebp - 0x42c]
mov dword [ebp + 8], ebx
call fcn.0041b85c
add esp, 0x10
cmp eax, ebx
mov dword [ebp - 0x418], eax
jge 0x42cd3f
push eax
push 0x7d6
push 0x838
call fcn.00418533
add esp, 0xc
jmp 0x42cf63
push ebx
lea eax, [esi + 0xc]
push eax
push dword [0x4563b4]
push dword [ebp - 0x42c]
call fcn.0041b85c
mov eax, dword [ebp - 0x42c]
mov ecx, dword [eax]
add esp, 0x10
lea edx, [ebp - 0x440]
push edx
push 0x407a38
push eax
call dword [ecx + 0x90]
cmp eax, ebx
mov dword [ebp - 0x418], eax
jge 0x42cd90
push dword [esi + 4]
push eax
push 0x7d6
push 0x839
jmp 0x42d013
mov eax, dword [ebp - 0x440]
mov ecx, dword [eax]
add esi, 0x24
push esi
push eax
call dword [ecx + 0x20]
cmp eax, ebx
mov dword [ebp - 0x418], eax
jl 0x42cf63
mov eax, dword [esi]
cmp eax, ebx
jle 0x42cf31
shl eax, 2
push eax
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
mov edi, eax
cmp edi, ebx
mov eax, dword [ebp - 0x434]
pop ecx
mov dword [eax + 0x20], edi
je 0x42cfe6
mov ecx, dword [esi]
shl ecx, 2
mov edx, ecx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [ebp - 0x440]
mov ecx, dword [eax]
lea edx, [ebp - 0x430]
push edx
push eax
call dword [ecx + 0x24]
cmp eax, ebx
jne 0x42cf31
xor esi, esi
cmp dword [ebp - 0x430], ebx
je 0x42cf31
push dword [ebp - 0x438]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
push 0x28
mov dword [ebp - 0x438], ebx
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov ecx, eax
mov dword [ebp - 0x44c], ecx
cmp ecx, ebx
mov byte [ebp - 4], 0xe
je 0x42ce46
push 1
call fcn.0042c5d6
jmp 0x42ce48
xor eax, eax
mov edi, dword [ebp - 0x434]
mov ecx, dword [edi + 0x20]
mov dword [esi + ecx], eax
mov eax, dword [edi + 0x20]
cmp dword [esi + eax], ebx
mov byte [ebp - 4], 5
je 0x42cfe6
push ebx
lea eax, [ebp - 0x438]
push eax
push 0x407a24
push dword [ebp - 0x430]
call fcn.0041b85c
add esp, 0x10
test eax, eax
jl 0x42ce99
push dword [ebp - 0x438]
call dword [sym.imp.msvcrt.dll__wtoi]
pop ecx
mov ecx, dword [edi + 0x20]
mov ecx, dword [ecx + esi]
mov dword [ecx + 4], eax
mov eax, dword [edi + 0x20]
mov eax, dword [eax + esi]
push ebx
add eax, 0xc
push eax
push 0x407a14
push dword [ebp - 0x430]
call fcn.0041b85c
add esp, 0x10
cmp eax, ebx
mov dword [ebp - 0x418], eax
jl 0x42cff5
mov eax, dword [edi + 0x20]
mov eax, dword [eax + esi]
push ebx
add eax, 0x10
push eax
push 0x407a0c
push dword [ebp - 0x430]
call fcn.0041b85c
add esp, 0x10
cmp eax, ebx
mov dword [ebp - 0x418], eax
jl 0x42d005
mov eax, dword [edi + 0x20]
mov ecx, dword [eax + esi]
call fcn.0042c3ef
cmp eax, ebx
mov dword [ebp - 0x418], eax
jl 0x42cf63
lea eax, [ebp - 0x430]
push eax
call fcn.00431393
mov eax, dword [ebp - 0x440]
pop ecx
mov ecx, dword [eax]
lea edx, [ebp - 0x430]
push edx
push eax
add esi, 4
call dword [ecx + 0x24]
test eax, eax
je 0x42ce07
push dword [ebp - 0x42c]
mov ecx, dword [ebp - 0x434]
call fcn.0042c10b
cmp eax, ebx
mov dword [ebp - 0x418], eax
jl 0x42cf63
push dword [ebp - 0x42c]
mov ecx, dword [ebp - 0x434]
call fcn.0042c223
mov dword [ebp - 0x418], eax
lea ecx, [ebp - 0xebc]
mov byte [ebp - 4], 4
call fcn.00419db0
lea eax, [ebp - 0x42c]
push eax
mov byte [ebp - 4], 3
call fcn.00431393
lea eax, [ebp - 0x448]
push eax
mov byte [ebp - 4], 2
call fcn.00431393
pop ecx
pop ecx
push dword [ebp - 0x438]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
lea eax, [ebp - 0x440]
push eax
mov dword [ebp - 0x438], ebx
mov byte [ebp - 4], bl
call fcn.00431393
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x430]
push eax
call fcn.00431393
mov eax, dword [ebp - 0x418]
pop ecx
pop ecx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.0041519d
leave
ret 4
mov dword [ebp - 0x418], 0x8007000e
jmp 0x42cf63
push dword [edi + 4]
push eax
push 0x7d6
push 0x83a
jmp 0x42d013
push dword [edi + 4]
push eax
push 0x7d6
push 0x83b
call fcn.00418538
add esp, 0x10
jmp 0x42cf63