Function at 0x41e462
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x47406c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x10], 0x24
mov ebx, ecx
mov dword [ebp - 0xc], 0x26
xor ecx, ecx
mov dword [ebp - 8], 0x2a
inc edi
mov dword [ebp - 0x20], ecx
mov esi, ecx
mov dword [ebp - 0x1c], ecx
cmp dword [0x476a70], ecx
jne 0x41e504
push 3
push 0x20
push 3
push edi
push 3
push 2
push ecx
push ecx
call dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
push edx
push eax
push 0x23
xor ecx, ecx
mov dword [0x476a70], 0x11c
push 0x476a70
mov dword [0x476a74], 6
mov dword [0x476a78], edi
mov word [0x476b84], cx
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
neg eax
sbb eax, eax
inc eax
xor ecx, ecx
mov dword [0x4749d4], eax
jmp 0x41e509
mov eax, dword [0x4749d4]
test eax, eax
je 0x41e514
mov eax, edi
jmp 0x41e677
test ebx, ebx
je 0x41e664
push ecx
push ecx
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
mov edi, eax
test edi, edi
je 0x41e664
lea eax, [edi + edi]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x41e65f
xor ecx, ecx
push ecx
push eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
mov ebx, dword [ebp - 0x14]
cmp edi, eax
jbe 0x41e666
xor esi, esi
mov edi, esi
lfence
mov dword [ebp - 0x18], edi
jmp 0x41e56c
xor esi, esi
mov ecx, dword [ebp + edi*4 - 0x10]
cmp ecx, 0x26
jne 0x41e64d
push esi
push esi
push 0x46c810
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov edi, eax
test edi, edi
je 0x41e666
lea ecx, [edi*2 + 2]
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
je 0x41e666
push edi
push esi
push 0x46c810
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp edi, eax
jne 0x41e666
push esi
push 0x46c810
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x41e634
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
push 0x26
mov edx, 0x46c6ec
pop ecx
call fcn.0041e2ed
mov esi, eax
test esi, esi
je 0x41e666
mov edi, dword [ebp - 0x18]
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0x20]
jne 0x41e5f1
sub ecx, edx
sar ecx, 1
push ecx
push esi
push ebx
call fcn.0043cb58
xor ecx, ecx
add esp, 0xc
test eax, eax
sete cl
mov dword [ebp - 0x1c], ecx
test eax, eax
je 0x41e666
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
inc edi
mov dword [ebp - 0x18], edi
mov esi, eax
cmp edi, 3
jl 0x41e56a
jmp 0x41e666
cmp word [esi + edi*2 - 4], 0x5c
je 0x41e5e9
push 0x46c80c
lea edx, [edi + 1]
mov ecx, esi
call fcn.0041dd09
jmp 0x41e5e9
mov edx, 0x46c6ec
call fcn.0041e2ed
mov esi, eax
test esi, esi
je 0x41e666
jmp 0x41e5ec
mov ebx, dword [ebp - 0x14]
jmp 0x41e666
mov ebx, esi
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004357d6
leave
ret