Function at 0x41dee0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa5c
mov eax, dword [0x4b9430]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push ebx
push esi
mov ebx, ecx
push edi
xor edi, edi
mov dword [ebp - 0xa58], eax
mov dword [ebp - 0xa54], eax
mov dword [ebp - 0xa50], eax
mov dword [ebp - 0xa4c], eax
mov dword [ebp - 0xa48], eax
mov eax, ebx
mov dword [ebp - 0xa5c], edi
xor esi, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41df27
sub eax, edx
cmp eax, 2
jbe 0x41df56
cmp byte [ebx], 0x2d
jne 0x41df56
cmp byte [ebx + 1], 0x79
jne 0x41df56
call fcn.0041dd10
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045d3b4
mov esp, ebp
pop ebp
ret
cmp byte [ebx], 0
mov eax, ebx
je 0x41df90
xor edx, edx
nop
mov cl, byte [eax]
cmp cl, 0x25
jne 0x41df74
mov dword [ebp + esi*4 - 0xa5c], edx
inc esi
cmp esi, 5
jg 0x41df8a
cmp cl, 0xd
je 0x41df87
cmp cl, 0xa
je 0x41df87
inc eax
inc edx
cmp byte [eax], 0
jne 0x41df60
jmp 0x41df8a
mov byte [eax], 0
mov edi, dword [ebp - 0xa5c]
mov eax, esi
sub eax, 0
je 0x41e0de
sub eax, 2
jne 0x41e125
mov esi, dword [ebp - 0xa58]
sub esi, edi
lea eax, [esi - 1]
push eax
lea ecx, [ebx + edi + 1]
push ecx
lea edx, [ebp - 0x68]
push edx
call fcn.004608a0
add esp, 0xc
push 0x208
lea eax, [ebp - 0xa44]
push eax
lea ecx, [ebp - 0x68]
push ecx
mov byte [ebp + esi - 0x69], 0
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x41e0cb
cmp eax, 0x208
jg 0x41e0cb
push edi
lea edx, [ebp - 0x838]
push ebx
push edx
call fcn.004608a0
lea eax, [ebp - 0xa44]
add esp, 0xc
mov byte [ebp + edi - 0x838], 0
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41e010
lea edi, [ebp - 0x838]
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x41e020
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [ebp - 0xa58]
and ecx, 3
lea eax, [ebx + eax + 1]
rep movsb byte es:[edi], byte [esi]
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x41e042
lea edi, [ebp - 0x838]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x41e054
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
cmp byte [ebp - 0x838], 0x2d
jne 0x41e0a8
cmp byte [ebp - 0x837], 0x73
jne 0x41e0a8
lea ecx, [ebp - 0x836]
push 0x5c
push ecx
call fcn.0045e830
add esp, 8
test eax, eax
je 0x41e125
mov byte [eax], 0
inc eax
push eax
lea edx, [ebp - 0x836]
push edx
call fcn.0041e140
jmp 0x41e122
lea eax, [ebp - 0x838]
push 0x5c
push eax
call fcn.0045e830
add esp, 8
test eax, eax
je 0x41e125
mov byte [eax], 0
inc eax
push eax
lea ecx, [ebp - 0x838]
push ecx
jmp 0x41e11d
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045d3b4
mov esp, ebp
pop ebp
ret
cmp byte [ebx], 0x2d
jne 0x41e108
cmp byte [ebx + 1], 0x73
jne 0x41e108
add ebx, 2
push 0x5c
push ebx
call fcn.0045e830
add esp, 8
test eax, eax
je 0x41e125
mov byte [eax], 0
inc eax
push eax
push ebx
call fcn.0041e140
jmp 0x41e122
push 0x5c
push ebx
call fcn.0045e830
add esp, 8
test eax, eax
je 0x41e125
mov byte [eax], 0
inc eax
push eax
push ebx
call fcn.0041e290
add esp, 8
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.0045d3b4
mov esp, ebp
pop ebp
ret