Function at 0x41c950
Capabilities:
Query environment variable

Disassembly:
push 0xffffffffffffffff
push 0x44a84c
mov eax, dword fs:[0]
push eax
mov eax, 0x1c4c
call fcn.0043eed0
mov eax, dword [0x4537c0]
xor eax, esp
mov dword [esp + 0x1c48], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4537c0]
xor eax, esp
push eax
lea eax, [esp + 0x1c60]
mov dword fs:[0], eax
mov ecx, dword [esp + 0x1c74]
mov eax, dword [esp + 0x1c70]
xor edi, edi
cmp byte [esp + 0x1c78], 0
mov dword [esp + 0x20], ecx
lea edx, [esp + 0xc5c]
je 0x41c9bf
push 1
push edx
push eax
call fcn.00427be0
jmp 0x41c9cb
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x41c9c1
lea ecx, [esp + 0x3c]
call fcn.0041a1e0
cmp byte [esp + 0xc5c], 0
mov dword [esp + 0x1c68], edi
je 0x41ca46
mov bl, byte [esp + 0x1c7c]
push edi
test bl, bl
je 0x41ca04
lea eax, [esp + 0xc60]
push eax
lea ecx, [esp + 0x44]
call fcn.0041a700
jmp 0x41ca17
push edi
push edi
lea ecx, [esp + 0xc68]
push ecx
lea ecx, [esp + 0x4c]
call fcn.0041a5d0
test al, al
jne 0x41ca51
test bl, bl
je 0x41ca2b
push 6
mov ecx, 0x45d404
call fcn.004167b0
lea ecx, [esp + 0x3c]
mov dword [esp + 0x1c68], 0xffffffff
call fcn.0041a5a0
xor al, al
jmp 0x41ced3
push 1
lea ecx, [esp + 0x40]
call fcn.0041a560
push 0x405
call fcn.0043e62f
mov ebx, eax
add esp, 4
mov dword [esp + 0x24], ebx
cmp ebx, edi
jne 0x41ca72
mov ecx, 0x45d404
call fcn.004167d0
mov ebp, 0x405
mov esi, ebp
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], esi
push 0x400
push ebx
lea ecx, [esp + 0x44]
mov byte [esp + 0x1c70], 1
call fcn.0041ae90
test eax, eax
je 0x41caf3
lea esp, [esp]
add ebp, eax
add edi, eax
mov dword [esp + 0x28], ebp
cmp ebp, esi
jbe 0x41cadd
mov edx, esi
shr edx, 2
lea esi, [edx + esi + 0x20]
cmp ebp, esi
jbe 0x41cabb
mov esi, ebp
push esi
push ebx
call fcn.0043e33b
mov ebx, eax
add esp, 8
mov dword [esp + 0x24], ebx
test ebx, ebx
jne 0x41cad9
mov ecx, 0x45d404
call fcn.004167d0
mov dword [esp + 0x2c], esi
lea eax, [ebx + edi]
push 0x400
push eax
lea ecx, [esp + 0x44]
call fcn.0041ae90
test eax, eax
jne 0x41caa0
xor eax, eax
mov dword [ebx + edi], eax
mov byte [ebx + edi + 4], al
mov eax, dword [esp + 0x1c80]
cmp eax, 3
je 0x41cc2b
test eax, eax
jne 0x41cb21
mov edx, edi
mov esi, ebx
call fcn.0041c910
test al, al
jne 0x41cc2b
cmp byte [ebx], 0
mov edi, ebx
je 0x41ceb0
mov ebp, dword [esp + 0x20]
xor ecx, ecx
cmp byte [edi], 0xd
mov esi, edi
je 0x41cb61
mov al, byte [esi]
cmp al, 0xa
je 0x41cb61
test al, al
je 0x41cb61
cmp byte [esp + 0x1c88], 0
je 0x41cb5b
cmp al, 0x2f
jne 0x41cb5b
cmp byte [esi + 1], al
jne 0x41cb5b
mov byte [esi], 0
mov ecx, esi
inc esi
cmp byte [esi], 0xd
jne 0x41cb39
mov byte [esi], 0
mov eax, ecx
test ecx, ecx
jne 0x41cb6c
mov eax, esi
dec eax
cmp eax, edi
jb 0x41cb85
mov cl, byte [eax]
cmp cl, 0x20
je 0x41cb7d
cmp cl, 9
jne 0x41cb85
mov byte [eax], 0
dec eax
cmp eax, edi
jae 0x41cb71
mov al, byte [edi]
test al, al
je 0x41cc07
cmp byte [esp + 0x1c84], 0
je 0x41cbb5
cmp al, 0x22
jne 0x41cbb5
mov eax, edi
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41cba0
sub eax, edx
cmp byte [eax + edi - 1], 0x22
jne 0x41cbb5
mov byte [eax + edi - 1], cl
inc edi
cmp dword [esp + 0x1c80], 2
jne 0x41cbc7
push edi
push edi
call dword [sym.imp.USER32.dll_OemToCharA]
cmp byte [esp + 0x1c8c], 0
je 0x41cbff
cmp byte [edi], 0x25
jne 0x41cbff
push 0x400
lea eax, [esp + 0x1060]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
test eax, eax
je 0x41cbff
cmp eax, 0x400
jae 0x41cbff
lea ecx, [esp + 0x105c]
push ecx
jmp 0x41cc00
push edi
mov ecx, ebp
call fcn.004358b0
lea edi, [esi + 1]
lea ebx, [ebx]
mov al, byte [edi]
cmp al, 0xd
je 0x41cc1a
cmp al, 0xa
jne 0x41cc1d
inc edi
jmp 0x41cc10
cmp byte [edi], 0
jne 0x41cb30
jmp 0x41ceb0
mov edi, ebp
shr edi, 1
inc edi
lea edx, [edi + edi]
push edx
call fcn.0043e62f
mov esi, eax
add esp, 4
mov dword [esp + 0x30], esi
test esi, esi
jne 0x41cc54
test edi, edi
je 0x41cc54
mov ecx, 0x45d404
call fcn.004167d0
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], edi
lea ecx, [ebp - 1]
cmp ecx, 2
jbe 0x41cca6
add ecx, 0xfffffffd
mov edx, 0xfffffffe
shr ecx, 1
sub edx, ebx
lea eax, [ebx + 2]
inc ecx
jmp 0x41cc80
movzx di, byte [eax + 1]
mov ebx, pe_nt_image_headers32
imul di, bx
movzx bx, byte [eax]
add di, bx
lea ebx, [edx + eax]
shr ebx, 1
add eax, 2
sub ecx, 1
mov word [esi + ebx*2], di
jne 0x41cc80
xor eax, eax
mov edi, esi
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov byte [esp + 0x1c68], 3
cmp word [esi], ax
je 0x41ce9f
xor ecx, ecx
cmp word [edi], 0xd
mov ebx, edi
je 0x41cd05
movzx eax, word [ebx]
cmp ax, 0xa
je 0x41cd05
test ax, ax
je 0x41cd05
cmp byte [esp + 0x1c88], 0
je 0x41ccfc
cmp ax, 0x2f
jne 0x41ccfc
cmp word [ebx + 2], ax
jne 0x41ccfc
xor eax, eax
mov word [ebx], ax
mov ecx, ebx
add ebx, 2
cmp word [ebx], 0xd
jne 0x41ccd1
xor edx, edx
mov word [ebx], dx
mov eax, ecx
test ecx, ecx
jne 0x41cd12
mov eax, ebx
add eax, 0xfffffffe
cmp eax, edi
jb 0x41cd3b
lea esp, [esp]
movzx ecx, word [eax]
cmp cx, 0x20
je 0x41cd2f
cmp cx, 9
jne 0x41cd3b
xor ecx, ecx
mov word [eax], cx
sub eax, 2
cmp eax, edi
jae 0x41cd20
cmp word [edi], 0
je 0x41ce68
push edi
call fcn.00436a00
mov ecx, dword [esp + 0x18]
mov ebp, eax
mov edx, ebp
sub edx, ecx
lea eax, [edx*4 + 4]
test eax, eax
jle 0x41cdab
add ecx, eax
mov dword [esp + 0x18], ecx
cmp ecx, dword [esp + 0x1c]
jbe 0x41cdab
mov eax, dword [esp + 0x1c]
mov ecx, eax
shr ecx, 2
lea esi, [ecx + eax + 0x20]
mov eax, dword [esp + 0x18]
cmp eax, esi
jbe 0x41cd83
mov esi, eax
mov edx, dword [esp + 0x14]
push esi
push edx
call fcn.0043e33b
add esp, 8
mov dword [esp + 0x14], eax
test eax, eax
jne 0x41cda3
mov ecx, 0x45d404
call fcn.004167d0
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x1c], esi
cmp byte [esp + 0x1c84], 0
je 0x41cdcd
cmp word [edi], 0x22
jne 0x41cdcd
cmp word [edi + ebp*2 - 2], 0x22
jne 0x41cdcd
xor eax, eax
mov word [edi + ebp*2 - 2], ax
add edi, 2
push ecx
mov ecx, dword [esp + 0x18]
push ecx
push edi
call fcn.004367a0
cmp byte [esp + 0x1c8c], 0
je 0x41ce59
cmp word [edi], 0x25
jne 0x41ce59
mov ecx, dword [esp + 0x14]
push 0x400
lea eax, [esp + 0x1060]
xor edx, edx
push eax
push ecx
mov word [esp + 0x1468], dx
lea ebp, [edx + 1]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
mov esi, eax
test esi, esi
je 0x41ce59
call fcn.0041dd50
test eax, eax
je 0x41ce33
push 0x400
lea edx, [esp + 0x1460]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov ebp, eax
cmp esi, 0x400
jae 0x41ce59
test ebp, ebp
je 0x41ce59
cmp ebp, 0x400
jae 0x41ce59
lea eax, [esp + 0x145c]
push eax
lea ecx, [esp + 0x1060]
push ecx
jmp 0x41ce5f
mov edx, dword [esp + 0x14]
push edi
push edx
mov ecx, dword [esp + 0x28]
call fcn.00435600
lea edi, [ebx + 2]
jmp 0x41ce70
movzx eax, word [edi]
cmp ax, 0xd
je 0x41ce7f
cmp ax, 0xa
jne 0x41ce84
add edi, 2
jmp 0x41ce70
cmp word [edi], 0
jne 0x41ccc7
mov eax, dword [esp + 0x14]
test eax, eax
je 0x41ce9f
push eax
call fcn.0043e2ad
add esp, 4
mov eax, dword [esp + 0x30]
push eax
call fcn.0043e2ad
mov ebx, dword [esp + 0x28]
add esp, 4
test ebx, ebx
je 0x41cebd
push ebx
call fcn.0043e2ad
add esp, 4
lea ecx, [esp + 0x3c]
mov dword [esp + 0x1c68], 0xffffffff
call fcn.0041a5a0
mov al, 1
mov ecx, dword [esp + 0x1c60]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1c48]
xor ecx, esp
call fcn.0043e556
add esp, 0x1c58
ret 0x20