Function at 0x41e408
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x47606c]
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 [0x478a70], ecx
jne 0x41e4aa
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 [0x478a70], 0x11c
push 0x478a70
mov dword [0x478a74], 6
mov dword [0x478a78], edi
mov word [0x478b84], cx
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
neg eax
sbb eax, eax
inc eax
xor ecx, ecx
mov dword [0x4769d8], eax
jmp 0x41e4af
mov eax, dword [0x4769d8]
test eax, eax
je 0x41e4ba
mov eax, edi
jmp 0x41e61d
test ebx, ebx
je 0x41e60a
push ecx
push ecx
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
mov edi, eax
test edi, edi
je 0x41e60a
lea eax, [edi + edi]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x41e605
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 0x41e60c
xor esi, esi
mov edi, esi
lfence
mov dword [ebp - 0x18], edi
jmp 0x41e512
xor esi, esi
mov ecx, dword [ebp + edi*4 - 0x10]
cmp ecx, 0x26
jne 0x41e5f3
push esi
push esi
push 0x46d860
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov edi, eax
test edi, edi
je 0x41e60c
lea ecx, [edi*2 + 2]
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
je 0x41e60c
push edi
push esi
push 0x46d860
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp edi, eax
jne 0x41e60c
push esi
push 0x46d860
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x41e5da
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
push 0x26
mov edx, 0x46d73c
pop ecx
call fcn.0041e293
mov esi, eax
test esi, esi
je 0x41e60c
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 0x41e597
sub ecx, edx
sar ecx, 1
push ecx
push esi
push ebx
call fcn.0043d338
xor ecx, ecx
add esp, 0xc
test eax, eax
sete cl
mov dword [ebp - 0x1c], ecx
test eax, eax
je 0x41e60c
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 0x41e510
jmp 0x41e60c
cmp word [esi + edi*2 - 4], 0x5c
je 0x41e58f
push 0x46d85c
lea edx, [edi + 1]
mov ecx, esi
call fcn.0041dc99
jmp 0x41e58f
mov edx, 0x46d73c
call fcn.0041e293
mov esi, eax
test esi, esi
je 0x41e60c
jmp 0x41e592
mov ebx, dword [ebp - 0x14]
jmp 0x41e60c
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.00435fb6
leave
ret