Function at 0x41b9ad
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x2c], ecx
mov esi, edx
lea ecx, [ebp - 0x58]
inc edi
mov dword [ebp - 0x1c], esi
push edi
call fcn.00416ef7
push 3
pop eax
mov dword [ebp - 0xc], eax
lea ecx, [ebp - 0x4c]
mov dword [ebp - 8], 8
push eax
call fcn.00416ef7
xor ebx, ebx
mov dword [ebp - 8], ebx
jmp 0x41b9f7
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 0x58]
mov dword [eax + ecx*4], 0xaf11
inc dword [ebp - 8]
cmp dword [ebp - 8], edi
jl 0x41b9e7
mov dword [ebp - 8], ebx
jmp 0x41ba0d
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 0x4c]
mov dword [eax + ecx*4], edi
inc dword [ebp - 8]
cmp dword [ebp - 8], 3
jl 0x41ba01
mov dword [ebp - 0xc], ebx
cmp dword [ebp - 0xc], ebx
jg 0x41bb72
mov esi, dword [ebp - 0x4c]
push edi
lea ecx, [ebp - 0x40]
call fcn.00416ef7
mov dword [ebp - 8], 0xffffffff
mov dword [ebp - 0x24], 0xfffffffa
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x24], 0xcc254292
mov dword [ebp - 0x14], 0x4938
mov dword [ebp - 0x10], ebx
jmp 0x41ba5b
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x40]
mov dword [eax + ecx*4], ebx
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], edi
jl 0x41ba4f
mov eax, dword [ebp - 0x40]
mov dword [eax], ebx
mov dword [ebp - 8], 0xfffffffd
mov dword [ebp - 0x24], 0xffffffff
mov dword [ebp - 0x20], 0xffffffff
mov dword [ebp - 0x20], 8
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x20], ebx
mov dword [ebp - 8], ebx
jmp 0x41ba9a
mov eax, dword [ebp - 8]
mov dword [ebp + eax*4 - 0x28], 0xd61fb9a3
inc dword [ebp - 8]
cmp dword [ebp - 8], edi
jl 0x41ba8c
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x58]
mov eax, dword [eax + ecx*4]
mov ecx, edi
mov dword [ebp - 8], eax
imul eax, dword [ebp - 8], 0x8398
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x14]
dec dword [ebp - 0x14]
cmp eax, edi
mov eax, dword [ebp - 0x28]
cmovge ecx, ebx
imul eax, ecx
cmp eax, dword [ebp - 0x18]
je 0x41baef
mov byte [ebp - 1], bl
cmp byte [ebp - 1], bl
je 0x41bb2f
push ebx
push 0x88
push 0x19d8
push ebx
call dword [sym.imp.GDI32.dll_SetPaletteEntries]
jmp 0x41bb2f
mov dword [ebp - 0x20], 0x9afca862
mov eax, dword [ebp - 0x20]
neg eax
jne 0x41bb20
cmp dword [ebp - 0x24], ebx
je 0x41bb1c
cmp dword [ebp - 0x10], ebx
je 0x41bb13
mov eax, dword [ebp - 8]
mov ecx, edi
add eax, 0x3c10
jne 0x41bb15
mov ecx, ebx
mov eax, dword [ebp - 0x24]
add eax, ecx
jne 0x41bb20
mov ecx, ebx
jmp 0x41bb22
mov ecx, edi
mov eax, dword [ebp - 0x18]
sub eax, ecx
neg eax
sbb eax, eax
inc eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x10], ebx
jmp 0x41bb3d
mov eax, dword [ebp - 0x18]
mov dword [ebp - 8], eax
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], 6
jne 0x41bb34
mov eax, dword [ebp - 0x40]
inc dword [eax]
cmp dword [eax], ebx
jle 0x41ba65
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x40]
mov dword [eax], ecx
mov dword [esi + 4], ecx
lea ecx, [ebp - 0x40]
call fcn.00417267
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], ebx
jle 0x41ba22
mov esi, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x58]
mov ecx, dword [eax]
mov eax, dword [ebp - 0x4c]
mov dword [eax + 8], ecx
lea ecx, [ebp - 0x4c]
call fcn.00417267
lea ecx, [ebp - 0x58]
call fcn.00417267
mov dword [ebp - 0xc], 0xd5e48d32
mov dword [ebp - 0xc], ebx
jmp 0x41bbaa
mov byte [ebp - 1], bl
cmp byte [ebp - 1], bl
je 0x41bba7
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
dec dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0xfffffffa
jge 0x41bb99
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x14], 0xffffffff
mov dword [ebp - 8], ebx
mov dword [ebp - 0x10], 0xb7b2415f
mov dword [ebp - 0x14], 0xffffffe3
jmp 0x41bc65
mov dword [ebp - 0xc], 0xfffffffc
mov dword [ebp - 0x10], ebx
jmp 0x41bbed
mov eax, dword [ebp - 0x10]
mov dword [ebp + eax*4 - 0x34], 0xffffffff
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], 2
jl 0x41bbdf
mov eax, dword [ebp - 0xc]
neg eax
cmp eax, 0xbd035c57
je 0x41bc0b
mov eax, dword [ebp - 0xc]
mov edx, edi
sub eax, 0xb76d
jne 0x41bc0d
mov edx, ebx
mov eax, dword [ebp - 8]
xor ecx, ecx
mov eax, dword [ebp - 8]
mov eax, dword [ebp - 8]
cmp eax, 4
setge cl
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
add eax, 0x28f3b8c1
imul eax, edx
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x10], ebx
jmp 0x41bc5d
mov dword [ebp - 0xc], edi
cmp dword [ebp - 0xc], ebx
jl 0x41bc5a
mov dword [ebp - 8], ebx
jmp 0x41bc50
mov eax, dword [ebp - 0xc]
cmp dword [ebp + eax*4 - 0x34], ebx
jne 0x41bc55
inc dword [ebp - 8]
cmp dword [ebp - 8], edi
jle 0x41bc44
dec dword [ebp - 0xc]
jns 0x41bc3f
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], edi
jle 0x41bc37
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], 9
jge 0x41bbd3
mov ebx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov eax, dword [ebx]
mov ecx, dword [ebx]
mov edx, dword [edx]
mov eax, dword [esi]
mov eax, dword [eax + ecx*4]
xor ecx, ecx
cmp eax, dword [edx]
mov eax, dword [ebp - 0x1c]
setne cl
mov dword [edx], ecx
mov edx, dword [ebx]
mov esi, dword [ebx]
mov edi, dword [ebx]
mov ebx, dword [eax]
lea eax, [ecx - 0xd6ba]
xor ecx, ecx
cmp eax, dword [ebx + edx*4]
setg cl
xor edx, edx
cmp dword [ebx + esi*4], ecx
sete dl
xor eax, eax
cmp edx, dword [ebx + edi*4]
setge al
cmp eax, dword [ebx]
je 0x41bcc1
mov eax, dword [ebp + 0xc]
xor esi, esi
mov eax, dword [eax]
cmp dword [eax], esi
je 0x41bcc4
xor esi, esi
inc esi
mov edx, dword [ebp + 8]
mov ecx, dword [ebp - 0x1c]
pop edi
mov eax, dword [edx]
mov edx, dword [edx]
mov ecx, dword [ecx]
mov eax, dword [ecx + eax*4]
sub eax, esi
add eax, 0x1f0ef2ed
imul eax, dword [ecx + edx*4]
mov ecx, dword [ebp - 0x2c]
pop esi
pop ebx
mov dword [ecx], eax
mov esp, ebp
pop ebp
ret