Function at 0x41e256
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 [0x478a58], ecx
jne 0x41e2f8
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 [0x478a58], 0x11c
push 0x478a58
mov dword [0x478a5c], 6
mov dword [0x478a60], edi
mov word [0x478b6c], cx
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
neg eax
sbb eax, eax
inc eax
xor ecx, ecx
mov dword [0x4769c8], eax
jmp 0x41e2fd
mov eax, dword [0x4769c8]
test eax, eax
je 0x41e308
mov eax, edi
jmp 0x41e46b
test ebx, ebx
je 0x41e458
push ecx
push ecx
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
mov edi, eax
test edi, edi
je 0x41e458
lea eax, [edi + edi]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x41e453
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 0x41e45a
xor esi, esi
mov edi, esi
lfence
mov dword [ebp - 0x18], edi
jmp 0x41e360
xor esi, esi
mov ecx, dword [ebp + edi*4 - 0x10]
cmp ecx, 0x26
jne 0x41e441
push esi
push esi
push 0x46da10
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov edi, eax
test edi, edi
je 0x41e45a
lea ecx, [edi*2 + 2]
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
je 0x41e45a
push edi
push esi
push 0x46da10
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp edi, eax
jne 0x41e45a
push esi
push 0x46da10
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x41e428
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
push 0x26
mov edx, 0x46d95c
pop ecx
call fcn.0041e0e1
mov esi, eax
test esi, esi
je 0x41e45a
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 0x41e3e5
sub ecx, edx
sar ecx, 1
push ecx
push esi
push ebx
call fcn.0043d368
xor ecx, ecx
add esp, 0xc
test eax, eax
sete cl
mov dword [ebp - 0x1c], ecx
test eax, eax
je 0x41e45a
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 0x41e35e
jmp 0x41e45a
cmp word [esi + edi*2 - 4], 0x5c
je 0x41e3dd
push 0x46da0c
lea edx, [edi + 1]
mov ecx, esi
call fcn.0041dc99
jmp 0x41e3dd
mov edx, 0x46d95c
call fcn.0041e0e1
mov esi, eax
test esi, esi
je 0x41e45a
jmp 0x41e3e0
mov ebx, dword [ebp - 0x14]
jmp 0x41e45a
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.00436186
leave
ret