Function at 0x41de53
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x47506c]
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 [0x477a58], ecx
jne 0x41def5
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 [0x477a58], 0x11c
push 0x477a58
mov dword [0x477a5c], 6
mov dword [0x477a60], edi
mov word [0x477b6c], cx
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
neg eax
sbb eax, eax
inc eax
xor ecx, ecx
mov dword [0x4759c8], eax
jmp 0x41defa
mov eax, dword [0x4759c8]
test eax, eax
je 0x41df05
mov eax, edi
jmp 0x41e068
test ebx, ebx
je 0x41e055
push ecx
push ecx
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
mov edi, eax
test edi, edi
je 0x41e055
lea eax, [edi + edi]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x41e050
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 0x41e057
xor esi, esi
mov edi, esi
lfence
mov dword [ebp - 0x18], edi
jmp 0x41df5d
xor esi, esi
mov ecx, dword [ebp + edi*4 - 0x10]
cmp ecx, 0x26
jne 0x41e03e
push esi
push esi
push 0x46c6a0
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov edi, eax
test edi, edi
je 0x41e057
lea ecx, [edi*2 + 2]
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
je 0x41e057
push edi
push esi
push 0x46c6a0
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp edi, eax
jne 0x41e057
push esi
push 0x46c6a0
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x41e025
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
push 0x26
mov edx, 0x46c5e0
pop ecx
call fcn.0041dcde
mov esi, eax
test esi, esi
je 0x41e057
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 0x41dfe2
sub ecx, edx
sar ecx, 1
push ecx
push esi
push ebx
call fcn.0043cf38
xor ecx, ecx
add esp, 0xc
test eax, eax
sete cl
mov dword [ebp - 0x1c], ecx
test eax, eax
je 0x41e057
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 0x41df5b
jmp 0x41e057
cmp word [esi + edi*2 - 4], 0x5c
je 0x41dfda
push 0x46c69c
lea edx, [edi + 1]
mov ecx, esi
call fcn.0041d896
jmp 0x41dfda
mov edx, 0x46c5e0
call fcn.0041dcde
mov esi, eax
test esi, esi
je 0x41e057
jmp 0x41dfdd
mov ebx, dword [ebp - 0x14]
jmp 0x41e057
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.00435d56
leave
ret